21 references to ImplementationFactory
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentsServiceCollectionExtensionsTest.cs (1)
125{ ImplementationFactory: { } factory } => factory(serviceProvider).GetType(),
Microsoft.AspNetCore.Mvc.Test (3)
MvcServiceCollectionExtensionsTest.cs (3)
277{ ImplementationFactory: { } factory } => factory(serviceProvider).GetType(), 660else if (service.ImplementationFactory is not null) 662var instance = service.ImplementationFactory(sp);
Microsoft.Extensions.DependencyInjection (5)
DependencyInjectionEventSource.cs (2)
252else if (!descriptor.IsKeyedService && descriptor.ImplementationFactory != null) 255builder.Append(descriptor.ImplementationFactory.Method);
ServiceLookup\CallSiteFactory.cs (2)
386else if (!descriptor.IsKeyedService && descriptor.ImplementationFactory != null) 388callSite = new FactoryCallSite(lifetime, descriptor.ServiceType, descriptor.ImplementationFactory);
ServiceLookup\ServiceDescriptorExtensions.cs (1)
28: serviceDescriptor.ImplementationFactory;
Microsoft.Extensions.DependencyInjection.Abstractions (7)
ServiceDescriptor.cs (7)
283if (ImplementationFactory != null) 285return lifetime + $"{nameof(ImplementationFactory)}: {ImplementationFactory.Method}"; 304else if (ImplementationFactory != null) 306Type[]? typeArguments = ImplementationFactory.GetType().GenericTypeArguments; 1048else if (ImplementationFactory != null) 1050debugText += $@", ImplementationFactory = {ImplementationFactory.Method}";
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
DependencyInjection\ServiceCollectionExtensionsTest.cs (5)
33Assert.Null(actual.ImplementationFactory); 41Assert.Null(actual.ImplementationFactory); 63Assert.Null(actual.ImplementationFactory); 71Assert.Null(actual.ImplementationFactory); 79Assert.Null(actual.ImplementationFactory);