2 instantiations of FactoryService
Microsoft.Extensions.DependencyInjection.AutoActivation.Tests (2)
AcceptanceTest.cs (1)
71return new FactoryService(sp.GetService<IFakeService>()!, sp.GetService<IFactoryServiceCounter>()!);
AcceptanceTest.Keyed.cs (1)
52return new FactoryService(sp.GetKeyedService<IFakeService>(sk)!, sp.GetRequiredService<IFactoryServiceCounter>());
6 references to FactoryService
Microsoft.Extensions.DependencyInjection.AutoActivation.Tests (6)
AcceptanceTest.cs (2)
69.AddActivatedSingleton<IFactoryService, FactoryService>(sp => 91.AddActivatedSingleton<IFactoryService, FactoryService>())
AcceptanceTest.Keyed.cs (2)
50.AddActivatedKeyedSingleton<IFactoryService, FactoryService>(serviceKey, (sp, sk) => 73.AddActivatedKeyedSingleton<IFactoryService, FactoryService>(serviceKey))
AutoActivationExtensionsKeyedTests.cs (1)
73serviceCollection.AddActivatedKeyedSingleton<IFactoryService, FactoryService>(null);
AutoActivationExtensionsTests.cs (1)
79serviceCollection.AddActivatedSingleton<IFactoryService, FactoryService>();