190 references to AddTransient
aspire (84)
Program.cs (84)
478builder.Services.AddTransient<LayoutProcessRunner>(); 479builder.Services.AddTransient<ProcessTreeGracefulShutdownService>(); 488builder.Services.AddTransient<OrphanedAppHostCollector>(); 530builder.Services.AddTransient<AppHostConnectionResolver>(); 677builder.Services.AddTransient<AppHostLauncher>(); 678builder.Services.AddTransient<DcpWorkloadCleanupService>(); 679builder.Services.AddTransient<NewCommand>(); 680builder.Services.AddTransient<InitCommand>(); 681builder.Services.AddTransient<RunCommand>(); 682builder.Services.AddTransient<StopCommand>(); 683builder.Services.AddTransient<StartCommand>(); 684builder.Services.AddTransient<WaitCommand>(); 685builder.Services.AddTransient<LsCommand>(); 686builder.Services.AddTransient<ResourceCommand>(); 687builder.Services.AddTransient<PsCommand>(); 688builder.Services.AddTransient<DescribeCommand>(); 689builder.Services.AddTransient<LogsCommand>(); 690builder.Services.AddTransient<IntegrationPackageSearchService>(); 691builder.Services.AddTransient<IntegrationCommand>(); 692builder.Services.AddTransient<IntegrationListCommand>(); 693builder.Services.AddTransient<IntegrationSearchCommand>(); 694builder.Services.AddTransient<TerminalCommand>(); 695builder.Services.AddTransient<TerminalResourceResolver>(); 696builder.Services.AddTransient<TerminalAttachCommand>(); 697builder.Services.AddTransient<TerminalPsCommand>(); 698builder.Services.AddTransient<TerminalTapeCommand>(); 699builder.Services.AddTransient<TerminalTapePlayCommand>(); 700builder.Services.AddTransient<AddCommand>(); 701builder.Services.AddTransient<PublishCommand>(); 702builder.Services.AddTransient<ConfigCommand>(); 703builder.Services.AddTransient<CompletionsCommand>(); 704builder.Services.AddTransient<CacheCommand>(); 705builder.Services.AddTransient<CertificatesCommand>(); 706builder.Services.AddTransient<CertificatesCleanCommand>(); 707builder.Services.AddTransient<CertificatesTrustCommand>(); 708builder.Services.AddTransient<DoctorCommand>(); 709builder.Services.AddTransient<DashboardCommand>(); 710builder.Services.AddTransient<DashboardRunCommand>(); 711builder.Services.AddTransient<TrayCommand>(); 712builder.Services.AddTransient<TrayStartCommand>(); 713builder.Services.AddTransient<TrayStopCommand>(); 714builder.Services.AddTransient<TrayLifecycleService>(); 715builder.Services.AddTransient<UpdateCommand>(); 716builder.Services.AddTransient<DeployCommand>(); 717builder.Services.AddTransient<DestroyCommand>(); 718builder.Services.AddTransient<DoCommand>(); 719builder.Services.AddTransient<McpCommand>(); 720builder.Services.AddTransient<McpStartCommand>(); 721builder.Services.AddTransient<McpInitCommand>(); 722builder.Services.AddTransient<McpToolsCommand>(); 723builder.Services.AddTransient<McpCallCommand>(); 724builder.Services.AddTransient<AgentCommand>(); 725builder.Services.AddTransient<AgentMcpCommand>(); 726builder.Services.AddTransient<AgentInitCommand>(); 727builder.Services.AddTransient<AgentTelemetryCommand>(); 729builder.Services.AddTransient<TelemetryCommand>(); 730builder.Services.AddTransient<TelemetryLogsCommand>(); 731builder.Services.AddTransient<TelemetrySpansCommand>(); 732builder.Services.AddTransient<TelemetryTracesCommand>(); 733builder.Services.AddTransient<ExportCommand>(); 734builder.Services.AddTransient<ApiCommand>(); 735builder.Services.AddTransient<ApiListCommand>(); 736builder.Services.AddTransient<ApiSearchCommand>(); 737builder.Services.AddTransient<ApiGetCommand>(); 738builder.Services.AddTransient<DocsCommand>(); 739builder.Services.AddTransient<DocsListCommand>(); 740builder.Services.AddTransient<DocsSearchCommand>(); 741builder.Services.AddTransient<DocsGetCommand>(); 742builder.Services.AddTransient<SecretCommand>(); 743builder.Services.AddTransient<SecretSetCommand>(); 744builder.Services.AddTransient<SecretGetCommand>(); 745builder.Services.AddTransient<SecretListCommand>(); 746builder.Services.AddTransient<SecretPathCommand>(); 747builder.Services.AddTransient<SecretDeleteCommand>(); 748builder.Services.AddTransient<AspireSecretsStoreResolver>(); 749builder.Services.AddTransient<SdkCommand>(); 750builder.Services.AddTransient<SdkGenerateCommand>(); 751builder.Services.AddTransient<SdkDumpCommand>(); 752builder.Services.AddTransient<SdkExportCommand>(); 753builder.Services.AddTransient<RestoreCommand>(); 755builder.Services.AddTransient<SetupCommand>(); 757builder.Services.AddTransient<RenderCommand>(); 759builder.Services.AddTransient<RootCommand>(); 760builder.Services.AddTransient<ExtensionInternalCommand>();
Aspire.Cli.Tests (84)
Utils\CliTestHelper.cs (84)
201services.AddTransient<LayoutProcessRunner>(); 202services.AddTransient<ProcessTreeGracefulShutdownService>(); 211services.AddTransient<OrphanedAppHostCollector>(); 274services.AddTransient<AppHostConnectionResolver>(); 275services.AddTransient<RootCommand>(); 276services.AddTransient<NewCommand>(); 277services.AddTransient<InitCommand>(); 278services.AddTransient<AppHostLauncher>(); 279services.AddTransient<DcpWorkloadCleanupService>(); 280services.AddTransient<RunCommand>(); 281services.AddTransient<StopCommand>(); 282services.AddTransient<StartCommand>(); 283services.AddTransient<ResourceCommand>(); 284services.AddTransient<LsCommand>(); 285services.AddTransient<PsCommand>(); 286services.AddTransient<DescribeCommand>(); 287services.AddTransient<LogsCommand>(); 288services.AddTransient<TerminalCommand>(); 289services.AddTransient<TerminalResourceResolver>(); 290services.AddTransient<TerminalAttachCommand>(); 291services.AddTransient<TerminalPsCommand>(); 292services.AddTransient<TerminalTapeCommand>(); 293services.AddTransient<TerminalTapePlayCommand>(); 294services.AddTransient<IntegrationPackageSearchService>(); 295services.AddTransient<IntegrationCommand>(); 296services.AddTransient<IntegrationListCommand>(); 297services.AddTransient<IntegrationSearchCommand>(); 298services.AddTransient<AddCommand>(); 299services.AddTransient<DeployCommand>(); 300services.AddTransient<DestroyCommand>(); 301services.AddTransient<DoCommand>(); 302services.AddTransient<PublishCommand>(); 303services.AddTransient<ConfigCommand>(); 304services.AddTransient<CompletionsCommand>(); 305services.AddTransient<CacheCommand>(); 306services.AddTransient<CertificatesCommand>(); 307services.AddTransient<CertificatesCleanCommand>(); 308services.AddTransient<CertificatesTrustCommand>(); 309services.AddTransient<DoctorCommand>(); 310services.AddTransient<DashboardCommand>(); 311services.AddTransient<DashboardRunCommand>(); 312services.AddTransient<TrayCommand>(); 313services.AddTransient<TrayStartCommand>(); 314services.AddTransient<TrayStopCommand>(); 315services.AddTransient<TrayLifecycleService>(); 316services.AddTransient<UpdateCommand>(); 317services.AddTransient<SetupCommand>(); 318services.AddTransient<McpCommand>(); 319services.AddTransient<McpStartCommand>(); 320services.AddTransient<McpInitCommand>(); 321services.AddTransient<McpToolsCommand>(); 322services.AddTransient<McpCallCommand>(); 323services.AddTransient<AgentCommand>(); 324services.AddTransient<AgentMcpCommand>(); 325services.AddTransient<AgentInitCommand>(); 326services.AddTransient<AgentTelemetryCommand>(); 328services.AddTransient<TelemetryCommand>(); 329services.AddTransient<TelemetryLogsCommand>(); 330services.AddTransient<TelemetrySpansCommand>(); 331services.AddTransient<TelemetryTracesCommand>(); 332services.AddTransient<ExportCommand>(); 333services.AddTransient<ExtensionInternalCommand>(); 334services.AddTransient<WaitCommand>(); 335services.AddTransient<RestoreCommand>(); 337services.AddTransient<SdkCommand>(); 338services.AddTransient<SdkGenerateCommand>(); 339services.AddTransient<SdkDumpCommand>(); 340services.AddTransient<SdkExportCommand>(); 341services.AddTransient<ApiCommand>(); 342services.AddTransient<ApiListCommand>(); 343services.AddTransient<ApiSearchCommand>(); 344services.AddTransient<ApiGetCommand>(); 345services.AddTransient<DocsCommand>(); 346services.AddTransient<DocsListCommand>(); 347services.AddTransient<DocsSearchCommand>(); 348services.AddTransient<DocsGetCommand>(); 349services.AddTransient<SecretCommand>(); 350services.AddTransient<SecretSetCommand>(); 351services.AddTransient<SecretGetCommand>(); 352services.AddTransient<SecretListCommand>(); 353services.AddTransient<SecretPathCommand>(); 354services.AddTransient<SecretDeleteCommand>(); 355services.AddTransient<AspireSecretsStoreResolver>(); 357services.AddTransient<RenderCommand>();
Aspire.Dashboard (5)
DashboardWebApplication.cs (5)
392builder.Services.AddTransient<StructuredLogsViewModel>(); 394builder.Services.AddTransient<OtlpLogsService>(); 395builder.Services.AddTransient<OtlpTraceService>(); 396builder.Services.AddTransient<OtlpMetricsService>(); 401builder.Services.AddTransient<TracesViewModel>();
Aspire.Dashboard.Components.Tests (3)
Pages\StructuredLogsTests.cs (1)
396Services.AddTransient<StructuredLogsViewModel>();
Pages\TracesTests.cs (1)
296Services.AddTransient<TracesViewModel>();
Shared\ResourceSetupHelpers.cs (1)
70context.Services.AddTransient<StructuredLogsViewModel>();
Keycloak.Web (1)
Program.cs (1)
20.AddTransient<AuthorizationHandler>();
Microsoft.AspNetCore.Authentication (1)
AuthenticationBuilder.cs (1)
51Services.AddTransient<THandler>();
Microsoft.AspNetCore.Server.HttpSys (1)
WebHostBuilderHttpSysExtensions.cs (1)
39services.AddTransient<AuthenticationHandler>();
Microsoft.AspNetCore.Server.IIS (1)
WebHostBuilderIISExtensions.cs (1)
43services.AddTransient<IISServerAuthenticationHandlerInternal>();
Microsoft.Extensions.Caching.Hybrid.Tests (4)
SampleUsage.cs (4)
18services.AddTransient<SomeDCService>(); 38services.AddTransient<SomeHCService>(); 58services.AddTransient<SomeHCServiceNoCapture>(); 78services.AddTransient<SomeHCServiceNoCaptureObjReuse>();
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Extensions\ServiceCollectionDescriptorExtensions.cs (1)
167/// <seealso cref="ServiceCollectionServiceExtensions.AddTransient{TService}(IServiceCollection)"/>
Microsoft.Extensions.Http.Diagnostics (1)
Latency\HttpClientLatencyTelemetryExtensions.cs (1)
35_ = services.AddTransient<HttpLatencyTelemetryHandler>();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\HttpClientLoggingExtensionsTest.cs (1)
699serviceCollection.AddTransient<TestRetryHandler>();
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>>()