12 references to Format
Microsoft.Extensions.DependencyInjection (12)
ServiceLookup\CallSiteFactory.cs (7)
54SR.Format(SR.TypeCannotBeActivated, implementationType, serviceType)); 62SR.Format(SR.ArityOfOpenGenericServiceNotEqualArityOfOpenGenericImplementation, serviceType, implementationType), "descriptors"); 79SR.Format(SR.TypeCannotBeActivated, implementationType, serviceType)); 117throw new ArgumentException(SR.Format(SR.TrimmingAnnotationsDoNotMatch, implementationType.FullName, serviceType.FullName)); 124throw new ArgumentException(SR.Format(SR.TrimmingAnnotationsDoNotMatch_NewConstraint, implementationType.FullName, serviceType.FullName)); 734throw new InvalidOperationException(SR.Format(SR.CannotResolveService, 762throw new InvalidOperationException(SR.Format(SR.AotCannotCreateGenericValueType, serviceType, typeArg));
ServiceLookup\CallSiteValidator.cs (1)
27SR.Format(SR.DirectScopedResolvedFromRootException, callSite.ServiceType,
ServiceLookup\ConstantCallSite.cs (1)
18throw new ArgumentException(SR.Format(SR.ConstantCantBeConvertedToServiceType, defaultValue.GetType(), serviceType));
ServiceLookup\ConstructorCallSite.cs (1)
22throw new ArgumentException(SR.Format(SR.ImplementationTypeCantBeConvertedToServiceType, constructorInfo.DeclaringType, serviceType));
ServiceLookup\ThrowHelper.cs (2)
23throw new InvalidOperationException(SR.Format(SR.KeyedServiceAnyKeyUsedToResolveService, nameof(IServiceProvider), nameof(IServiceScopeFactory))); 37throw new InvalidOperationException(SR.Format(SR.NoKeyedServiceRegistered, serviceType, keyType));