4 references to Singleton
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Extensions\ServiceCollectionDescriptorExtensions.cs (1)
432
services.TryAdd(ServiceDescriptor.
Singleton
(implementationFactory));
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
AutoActivationExtensions.cs (1)
311
services.TryAddAndActivate<TService>(ServiceDescriptor.
Singleton
<TService>(implementationFactory));
Microsoft.Extensions.Hosting.Abstractions (1)
ServiceCollectionHostedServiceExtensions.cs (1)
40
services.TryAddEnumerable(ServiceDescriptor.
Singleton
<IHostedService>(implementationFactory));
Microsoft.ML.AutoML (1)
AutoMLExperiment\AutoMLExperiment.cs (1)
177
var descriptor = ServiceDescriptor.
Singleton
<ITuner>(factory);