50 references to SR
Microsoft.Extensions.DependencyInjection (50)
ServiceLookup\CallSiteChain.cs (2)
41messageBuilder.Append(SR.Format(SR.CircularDependencyException, TypeNameHelper.GetTypeDisplayName(serviceIdentifier.ServiceType)));
ServiceLookup\CallSiteFactory.cs (27)
47SR.Format(SR.OpenGenericServiceRequiresOpenGenericImplementation, serviceType), 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)); 279throw new InvalidOperationException(SR.Format(SR.AotCannotCreateEnumerableValueType, itemType)); 495throw new InvalidOperationException(SR.InvalidServiceDescriptor); 575throw new InvalidOperationException(SR.Format(SR.NoConstructorMatch, implementationType)); 640SR.Format(SR.AmbiguousConstructorException, implementationType), 652SR.Format(SR.UnableToActivateTypeException, implementationType)); 694throw new InvalidOperationException(SR.InvalidServiceKeyType); 734throw new InvalidOperationException(SR.Format(SR.CannotResolveService, 762throw new InvalidOperationException(SR.Format(SR.AotCannotCreateGenericValueType, serviceType, typeArg)); 883throw new InvalidOperationException(SR.ServiceDescriptorNotExist);
ServiceLookup\CallSiteValidator.cs (6)
27SR.Format(SR.DirectScopedResolvedFromRootException, callSite.ServiceType, 32SR.Format(SR.ScopedResolvedFromRootException, 56throw new InvalidOperationException(SR.Format(SR.ScopedInSingletonException,
ServiceLookup\CallSiteVisitor.cs (2)
54throw new NotSupportedException(SR.Format(SR.CallSiteTypeNotSupported, callSite.GetType()));
ServiceLookup\ConstantCallSite.cs (2)
18throw new ArgumentException(SR.Format(SR.ConstantCantBeConvertedToServiceType, defaultValue.GetType(), serviceType));
ServiceLookup\ConstructorCallSite.cs (2)
22throw new ArgumentException(SR.Format(SR.ImplementationTypeCantBeConvertedToServiceType, constructorInfo.DeclaringType, serviceType));
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
297throw new NotSupportedException(SR.GetCaptureDisposableNotSupported);
ServiceLookup\ServiceProviderEngineScope.cs (2)
134throw new InvalidOperationException(SR.Format(SR.AsyncDisposableServiceDispose, TypeNameHelper.GetTypeDisplayName(toDispose[i])));
ServiceLookup\ThrowHelper.cs (6)
23throw new InvalidOperationException(SR.Format(SR.KeyedServiceAnyKeyUsedToResolveService, nameof(IServiceProvider), nameof(IServiceScopeFactory))); 30throw new InvalidOperationException(SR.Format(SR.NoServiceRegistered, serviceType)); 37throw new InvalidOperationException(SR.Format(SR.NoKeyedServiceRegistered, serviceType, keyType));