31 references to AddTransient
Aspire.Cli.Tests (5)
Utils\CliTestHelper.cs (5)
95
services.
AddTransient
(options.ExtensionBackchannelFactory);
103
services.
AddTransient
(options.DotNetCliExecutionFactoryFactory);
104
services.
AddTransient
(options.DotNetCliRunnerFactory);
105
services.
AddTransient
(options.NuGetPackageCacheFactory);
223
services.
AddTransient
(options.AppHostBackchannelFactory);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Extensions\ServiceCollectionDescriptorExtensions.cs (1)
202
/// <seealso cref="ServiceCollectionServiceExtensions.
AddTransient
{TService}(IServiceCollection, Func{IServiceProvider, TService})"/>
Microsoft.Extensions.Http (5)
DependencyInjection\HttpClientBuilderExtensions.cs (5)
53
builder.Services.
AddTransient
<IConfigureOptions<HttpClientFactoryOptions>>(services =>
375
builder.Services.
AddTransient
(s => AddTransientHelper<TClient>(s, builder));
439
builder.Services.
AddTransient
(s => AddTransientHelper<TClient, TImplementation>(s, builder));
490
builder.Services.
AddTransient
<TClient>(s =>
539
builder.Services.
AddTransient
<TClient>(s =>
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggingExtensionsTest.cs (1)
448
serviceCollection.
AddTransient
(_ =>
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (1)
DependencyInjectionExtensionsTests.cs (1)
262
.
AddTransient
<ITestClass>(provider => provider.GetRequiredService<Pooled<TestClass>>().Object)
Microsoft.Extensions.Options (16)
OptionsBuilder.cs (16)
71
Services.
AddTransient
<IConfigureOptions<TOptions>>(sp =>
92
Services.
AddTransient
<IConfigureOptions<TOptions>>(sp =>
115
Services.
AddTransient
<IConfigureOptions<TOptions>>(
145
Services.
AddTransient
<IConfigureOptions<TOptions>>(
178
Services.
AddTransient
<IConfigureOptions<TOptions>>(
220
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(sp =>
241
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(sp =>
264
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(
294
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(
327
Services.
AddTransient
<IPostConfigureOptions<TOptions>>(
352
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
399
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
430
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
469
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
513
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
562
Services.
AddTransient
<IValidateOptions<TOptions>>(sp =>
Microsoft.ML.AutoML (2)
API\AutoMLExperimentExtension.cs (1)
181
experiment.ServiceCollection.
AddTransient
<IPerformanceMonitor>(factory);
AutoMLExperiment\AutoMLExperiment.cs (1)
155
_serviceCollection.
AddTransient
<ITrialRunner>(factory);