26 references to GetResourceString
Microsoft.Extensions.DependencyInjection (26)
artifacts\obj\Microsoft.Extensions.DependencyInjection\Debug\net10.0\System.SR.cs (26)
16internal static string @AmbiguousConstructorException => GetResourceString("AmbiguousConstructorException", @"Unable to activate type '{0}'. The following constructors are ambiguous:");
18internal static string @CannotResolveService => GetResourceString("CannotResolveService", @"Unable to resolve service for type '{0}' while attempting to activate '{1}'.");
20internal static string @CircularDependencyException => GetResourceString("CircularDependencyException", @"A circular dependency was detected for the service of type '{0}'.");
22internal static string @UnableToActivateTypeException => GetResourceString("UnableToActivateTypeException", @"No constructor for type '{0}' can be instantiated using services from the service container and default values.");
24internal static string @OpenGenericServiceRequiresOpenGenericImplementation => GetResourceString("OpenGenericServiceRequiresOpenGenericImplementation", @"Open generic service type '{0}' requires registering an open generic implementation type.");
26internal static string @ArityOfOpenGenericServiceNotEqualArityOfOpenGenericImplementation => GetResourceString("ArityOfOpenGenericServiceNotEqualArityOfOpenGenericImplementation", @"Arity of open generic service type '{0}' does not equal arity of open generic implementation type '{1}'.");
28internal static string @TypeCannotBeActivated => GetResourceString("TypeCannotBeActivated", @"Cannot instantiate implementation type '{0}' for service type '{1}'.");
30internal static string @NoConstructorMatch => GetResourceString("NoConstructorMatch", @"A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.");
32internal static string @ScopedInSingletonException => GetResourceString("ScopedInSingletonException", @"Cannot consume {2} service '{0}' from {3} '{1}'.");
34internal static string @ScopedResolvedFromRootException => GetResourceString("ScopedResolvedFromRootException", @"Cannot resolve '{0}' from root provider because it requires {2} service '{1}'.");
36internal static string @DirectScopedResolvedFromRootException => GetResourceString("DirectScopedResolvedFromRootException", @"Cannot resolve {1} service '{0}' from root provider.");
38internal static string @ConstantCantBeConvertedToServiceType => GetResourceString("ConstantCantBeConvertedToServiceType", @"Constant value of type '{0}' can't be converted to service type '{1}'");
40internal static string @ImplementationTypeCantBeConvertedToServiceType => GetResourceString("ImplementationTypeCantBeConvertedToServiceType", @"Implementation type '{0}' can't be converted to service type '{1}'");
42internal static string @AsyncDisposableServiceDispose => GetResourceString("AsyncDisposableServiceDispose", @"'{0}' type only implements IAsyncDisposable. Use DisposeAsync to dispose the container.");
44internal static string @GetCaptureDisposableNotSupported => GetResourceString("GetCaptureDisposableNotSupported", @"GetCaptureDisposable call is supported only for main scope");
46internal static string @InvalidServiceDescriptor => GetResourceString("InvalidServiceDescriptor", @"Invalid service descriptor");
48internal static string @ServiceDescriptorNotExist => GetResourceString("ServiceDescriptorNotExist", @"Requested service descriptor doesn't exist.");
50internal static string @CallSiteTypeNotSupported => GetResourceString("CallSiteTypeNotSupported", @"Call site type {0} is not supported");
52internal static string @TrimmingAnnotationsDoNotMatch => GetResourceString("TrimmingAnnotationsDoNotMatch", @"Generic implementation type '{0}' has a DynamicallyAccessedMembers attribute applied to a generic argument type, but the service type '{1}' doesn't have a matching DynamicallyAccessedMembers attribute on its generic argument type.");
54internal static string @TrimmingAnnotationsDoNotMatch_NewConstraint => GetResourceString("TrimmingAnnotationsDoNotMatch_NewConstraint", @"Generic implementation type '{0}' has a DefaultConstructorConstraint ('new()' constraint), but the generic service type '{1}' doesn't.");
56internal static string @AotCannotCreateEnumerableValueType => GetResourceString("AotCannotCreateEnumerableValueType", @"Unable to create an Enumerable service of type '{0}' because it is a ValueType. Native code to support creating Enumerable services might not be available with native AOT.");
58internal static string @AotCannotCreateGenericValueType => GetResourceString("AotCannotCreateGenericValueType", @"Unable to create a generic service for type '{0}' because '{1}' is a ValueType. Native code to support creating generic services might not be available with native AOT.");
60internal static string @NoServiceRegistered => GetResourceString("NoServiceRegistered", @"No service for type '{0}' has been registered.");
62internal static string @InvalidServiceKeyType => GetResourceString("InvalidServiceKeyType", @"The type of the key used for lookup doesn't match the type in the constructor parameter with the ServiceKey attribute.");
64internal static string @KeyedServiceAnyKeyUsedToResolveService => GetResourceString("KeyedServiceAnyKeyUsedToResolveService", @"KeyedService.AnyKey cannot be used to resolve a single service.");
66internal static string @NoKeyedServiceRegistered => GetResourceString("NoKeyedServiceRegistered", @"No keyed service for type '{0}' using key type '{1}' has been registered.");