54 references to AddTransient
Aspire.Dashboard (5)
DashboardWebApplication.cs (5)
240builder.Services.AddTransient<StructuredLogsViewModel>(); 242builder.Services.AddTransient<OtlpLogsService>(); 243builder.Services.AddTransient<OtlpTraceService>(); 244builder.Services.AddTransient<OtlpMetricsService>(); 246builder.Services.AddTransient<TracesViewModel>();
BasicTestApp (1)
Program.cs (1)
43builder.Services.AddTransient<FormsTest.ValidationComponentDI.SaladChef>();
BasicWebSite (1)
StartupWithoutEndpointRouting.cs (1)
50services.AddTransient<ServiceActionFilter>();
ControllersFromServicesWebSite (2)
Startup.cs (2)
36services.AddTransient<QueryValueService>(); 37services.AddTransient<ValueService>();
Keycloak.Web (1)
Program.cs (1)
20.AddTransient<AuthorizationHandler>();
Microsoft.AspNetCore.Authentication (1)
AuthenticationBuilder.cs (1)
51Services.AddTransient<THandler>();
Microsoft.AspNetCore.Components.Tests (3)
ComponentFactoryTest.cs (2)
258.AddTransient<TestService1>() 259.AddTransient<TestService2>()
OwningComponentBaseTest.cs (1)
16services.AddTransient<MyService>();
Microsoft.AspNetCore.Hosting.Tests (4)
WebHostBuilderTests.cs (4)
220s.AddTransient<ServiceD>(); 245s.AddTransient<ServiceD>(); 468services.AddTransient<ServiceA>(); 473services.AddTransient<ServiceB>();
Microsoft.AspNetCore.Http.Tests (2)
DefaultHttpContextTests.cs (2)
207.AddTransient<DisposableThing>() 234.AddTransient<DisposableThing>()
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Filters\PageSaveTempDataPropertyFilterFactoryTest.cs (1)
37serviceCollection.AddTransient<PageSaveTempDataPropertyFilter>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Filters\ControllerSaveTempDataPropertyFilterFactoryTest.cs (1)
33serviceCollection.AddTransient<ControllerSaveTempDataPropertyFilter>();
Microsoft.AspNetCore.OpenApi.Tests (9)
Transformers\DocumentTransformerTests.cs (2)
102var serviceCollection = new ServiceCollection().AddTransient<Dependency>(); 221var serviceCollection = new ServiceCollection().AddTransient<Dependency>();
Transformers\OperationTransformerTests.cs (2)
322var serviceCollection = new ServiceCollection().AddTransient<Dependency>(); 458var serviceCollection = new ServiceCollection().AddTransient<Dependency>();
Transformers\SchemaTransformerTests.cs (2)
320var serviceCollection = new ServiceCollection().AddTransient<Dependency>(); 815var serviceCollection = new ServiceCollection().AddTransient<Dependency>();
Transformers\TypeBasedTransformerLifetimeTests.cs (3)
88var serviceCollection = new ServiceCollection().AddTransient<Dependency>(); 186var serviceCollection = new ServiceCollection().AddTransient<Dependency>(); 307var serviceCollection = new ServiceCollection().AddTransient<Dependency>();
Microsoft.AspNetCore.Routing.Tests (2)
DefaultParameterPolicyFactoryTest.cs (2)
199services.AddTransient<CustomParameterPolicy>(); 388services.AddTransient<CustomParameterPolicy>();
Microsoft.AspNetCore.Server.HttpSys (1)
WebHostBuilderHttpSysExtensions.cs (1)
37services.AddTransient<AuthenticationHandler>();
Microsoft.AspNetCore.Server.IIS (1)
WebHostBuilderIISExtensions.cs (1)
39services.AddTransient<IISServerAuthenticationHandlerInternal>();
Microsoft.AspNetCore.TestHost.Tests (2)
TestServerTests.cs (2)
404services.AddTransient<TestService>(); 452.AddTransient<TestService>()
Microsoft.Extensions.Caching.Hybrid.Tests (4)
SampleUsage.cs (4)
18services.AddTransient<SomeDCService>(); 38services.AddTransient<SomeHCService>(); 58services.AddTransient<SomeHCServiceNoCapture>(); 78services.AddTransient<SomeHCServiceNoCaptureObjReuse>();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
DefaultHealthCheckServiceTest.cs (1)
363b.Services.AddTransient<AnotherService>();
Microsoft.Extensions.Http.Diagnostics (1)
Latency\HttpClientLatencyTelemetryExtensions.cs (1)
35_ = services.AddTransient<HttpLatencyTelemetryHandler>();
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\HelperExtensions.cs (1)
16.AddTransient<NoRemoteCallHandler>()
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
HttpClientFactory.cs (1)
40.AddTransient<NoRemoteCallHandler>()
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (1)
DependencyInjectionExtensionsTests.cs (1)
261.AddTransient<Pooled<TestClass>>()
Mvc.RoutingWebSite (3)
StartupForDynamic.cs (1)
19services.AddTransient<Transformer>();
StartupForDynamicAndRazorPages.cs (1)
16services.AddTransient<Transformer>();
StartupForDynamicOrder.cs (1)
34services.AddTransient<Transformer>();
RazorWebSite (3)
Startup.cs (3)
35services.AddTransient<InjectedHelper>(); 36services.AddTransient<TaskReturningService>(); 37services.AddTransient<FrameworkSpecificHelper>();
RoutingWebSite (1)
UseEndpointRoutingStartup.cs (1)
14services.AddTransient<EndsWithStringRouteConstraint>();
SocialWeather (1)
Startup.cs (1)
15services.AddTransient<PersistentConnectionLifeTimeManager>();