9 references to Format
Microsoft.Extensions.DependencyInjection (9)
ServiceLookup\CallSiteChain.cs (1)
41
messageBuilder.Append(SR.
Format
(SR.CircularDependencyException, TypeNameHelper.GetTypeDisplayName(serviceIdentifier.ServiceType)));
ServiceLookup\CallSiteFactory.cs (5)
47
SR.
Format
(SR.OpenGenericServiceRequiresOpenGenericImplementation, serviceType),
279
throw new InvalidOperationException(SR.
Format
(SR.AotCannotCreateEnumerableValueType, itemType));
575
throw new InvalidOperationException(SR.
Format
(SR.NoConstructorMatch, implementationType));
640
SR.
Format
(SR.AmbiguousConstructorException, implementationType),
652
SR.
Format
(SR.UnableToActivateTypeException, implementationType));
ServiceLookup\CallSiteVisitor.cs (1)
54
throw new NotSupportedException(SR.
Format
(SR.CallSiteTypeNotSupported, callSite.GetType()));
ServiceLookup\ServiceProviderEngineScope.cs (1)
134
throw new InvalidOperationException(SR.
Format
(SR.AsyncDisposableServiceDispose, TypeNameHelper.GetTypeDisplayName(toDispose[i])));
ServiceLookup\ThrowHelper.cs (1)
30
throw new InvalidOperationException(SR.
Format
(SR.NoServiceRegistered, serviceType));