12 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 (7)
ServiceDescriptor.cs (7)
269if (KeyedImplementationFactory != null) 271return lifetime + $"{nameof(KeyedImplementationFactory)}: {KeyedImplementationFactory.Method}"; 323else if (KeyedImplementationFactory != null) 325Type[]? typeArguments = KeyedImplementationFactory.GetType().GenericTypeArguments; 1033else if (KeyedImplementationFactory != null) 1035debugText += $@", KeyedImplementationFactory = {KeyedImplementationFactory.Method}";