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