13 references to KeyedImplementationFactory
Microsoft.Extensions.DependencyInjection (5)
DependencyInjectionEventSource.cs (2)
257
else if (descriptor.IsKeyedService && descriptor.
KeyedImplementationFactory
!= null)
260
builder.Append(descriptor.
KeyedImplementationFactory
.Method);
ServiceLookup\CallSiteFactory.cs (2)
390
else if (descriptor.IsKeyedService && descriptor.
KeyedImplementationFactory
!= null)
392
callSite = 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.
263
if (
KeyedImplementationFactory
!= null)
265
return lifetime + $"{nameof(
KeyedImplementationFactory
)}: {
KeyedImplementationFactory
.Method}";
317
else if (
KeyedImplementationFactory
!= null)
319
Type[]? typeArguments =
KeyedImplementationFactory
.GetType().GenericTypeArguments;
1027
else if (
KeyedImplementationFactory
!= null)
1029
debugText += $@", KeyedImplementationFactory = {
KeyedImplementationFactory
.Method}";