13 references to KeyedImplementationFactory
Microsoft.Extensions.DependencyInjection (5)
DependencyInjectionEventSource.cs (2)
257else if (descriptor.IsKeyedService && descriptor.KeyedImplementationFactory != null) 260builder.Append(descriptor.KeyedImplementationFactory.Method);
ServiceLookup\CallSiteFactory.cs (2)
390else if (descriptor.IsKeyedService && descriptor.KeyedImplementationFactory != null) 392callSite = new FactoryCallSite(lifetime, descriptor.ServiceType, serviceIdentifier.ServiceKey!, descriptor.KeyedImplementationFactory);
ServiceLookup\ServiceDescriptorExtensions.cs (1)
27? serviceDescriptor.KeyedImplementationFactory
Microsoft.Extensions.DependencyInjection.Abstractions (8)
ServiceDescriptor.cs (8)
221/// If <see cref="IsKeyedService"/> is <see langword="true"/>, <see cref="KeyedImplementationFactory"/> should be called instead. 263if (KeyedImplementationFactory != null) 265return lifetime + $"{nameof(KeyedImplementationFactory)}: {KeyedImplementationFactory.Method}"; 317else if (KeyedImplementationFactory != null) 319Type[]? typeArguments = KeyedImplementationFactory.GetType().GenericTypeArguments; 1027else if (KeyedImplementationFactory != null) 1029debugText += $@", KeyedImplementationFactory = {KeyedImplementationFactory.Method}";