5 references to AddSingleton
Aspire.Hosting (1)
Lifecycle\LifecycleHookServiceCollectionExtensions.cs (1)
42
services.
AddSingleton
<IDistributedApplicationLifecycleHook, T>(implementationFactory);
BasicTestApp (1)
Program.cs (1)
50
builder.Logging.Services.
AddSingleton
<ILoggerProvider, PrependMessageLoggerProvider>(s =>
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
AutoActivationExtensions.cs (1)
106
.
AddSingleton
<TService, TImplementation>(implementationFactory)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\AcceptanceTests.cs (1)
66
.
AddSingleton
<IHttpClientLogEnricher, TestEnricher>(static _ => new TestEnricher(throwOnEnrich: true))
Microsoft.Extensions.Options.ConfigurationExtensions (1)
OptionsBuilderConfigurationExtensions.cs (1)
81
optionsBuilder.Services.
AddSingleton
<IOptionsChangeTokenSource<TOptions>, ConfigurationChangeTokenSource<TOptions>>(sp =>