195 references to AddTransient
aspire (86)
Program.cs (86)
497builder.Services.AddTransient<LayoutProcessRunner>(); 498builder.Services.AddTransient<ProcessTreeGracefulShutdownService>(); 507builder.Services.AddTransient<OrphanedAppHostCollector>(); 550builder.Services.AddTransient<AppHostConnectionResolver>(); 696builder.Services.AddTransient<AppHostLauncher>(); 697builder.Services.AddTransient<DcpWorkloadCleanupService>(); 698builder.Services.AddTransient<NewCommand>(); 699builder.Services.AddTransient<InitCommand>(); 700builder.Services.AddTransient<RunCommand>(); 701builder.Services.AddTransient<TestCommand>(); 702builder.Services.AddTransient<StopCommand>(); 703builder.Services.AddTransient<StartCommand>(); 704builder.Services.AddTransient<WaitCommand>(); 705builder.Services.AddTransient<LsCommand>(); 706builder.Services.AddTransient<ResourceCommand>(); 707builder.Services.AddTransient<PsCommand>(); 708builder.Services.AddTransient<DescribeCommand>(); 709builder.Services.AddTransient<LogsCommand>(); 710builder.Services.AddTransient<IntegrationPackageSearchService>(); 711builder.Services.AddTransient<IntegrationCommand>(); 712builder.Services.AddTransient<IntegrationListCommand>(); 713builder.Services.AddTransient<IntegrationSearchCommand>(); 714builder.Services.AddTransient<TerminalCommand>(); 715builder.Services.AddTransient<TerminalResourceResolver>(); 716builder.Services.AddTransient<TerminalAttachCommand>(); 717builder.Services.AddTransient<TerminalPsCommand>(); 718builder.Services.AddTransient<TerminalTapeCommand>(); 719builder.Services.AddTransient<TerminalTapePlayCommand>(); 720builder.Services.AddTransient<AddCommand>(); 721builder.Services.AddTransient<PublishCommand>(); 722builder.Services.AddTransient<ConfigCommand>(); 723builder.Services.AddTransient<TemplateManagementCommand>(); 724builder.Services.AddTransient<CompletionsCommand>(); 725builder.Services.AddTransient<CacheCommand>(); 726builder.Services.AddTransient<CertificatesCommand>(); 727builder.Services.AddTransient<CertificatesCleanCommand>(); 728builder.Services.AddTransient<CertificatesTrustCommand>(); 729builder.Services.AddTransient<DoctorCommand>(); 730builder.Services.AddTransient<DashboardCommand>(); 731builder.Services.AddTransient<DashboardRunCommand>(); 732builder.Services.AddTransient<TrayCommand>(); 733builder.Services.AddTransient<TrayStartCommand>(); 734builder.Services.AddTransient<TrayStopCommand>(); 735builder.Services.AddTransient<TrayLifecycleService>(); 736builder.Services.AddTransient<UpdateCommand>(); 737builder.Services.AddTransient<DeployCommand>(); 738builder.Services.AddTransient<DestroyCommand>(); 739builder.Services.AddTransient<DoCommand>(); 740builder.Services.AddTransient<McpCommand>(); 741builder.Services.AddTransient<McpStartCommand>(); 742builder.Services.AddTransient<McpInitCommand>(); 743builder.Services.AddTransient<McpToolsCommand>(); 744builder.Services.AddTransient<McpCallCommand>(); 745builder.Services.AddTransient<AgentCommand>(); 746builder.Services.AddTransient<AgentMcpCommand>(); 747builder.Services.AddTransient<AgentInitCommand>(); 748builder.Services.AddTransient<AgentTelemetryCommand>(); 750builder.Services.AddTransient<TelemetryCommand>(); 751builder.Services.AddTransient<TelemetryLogsCommand>(); 752builder.Services.AddTransient<TelemetrySpansCommand>(); 753builder.Services.AddTransient<TelemetryTracesCommand>(); 754builder.Services.AddTransient<ExportCommand>(); 755builder.Services.AddTransient<ApiCommand>(); 756builder.Services.AddTransient<ApiListCommand>(); 757builder.Services.AddTransient<ApiSearchCommand>(); 758builder.Services.AddTransient<ApiGetCommand>(); 759builder.Services.AddTransient<DocsCommand>(); 760builder.Services.AddTransient<DocsListCommand>(); 761builder.Services.AddTransient<DocsSearchCommand>(); 762builder.Services.AddTransient<DocsGetCommand>(); 763builder.Services.AddTransient<SecretCommand>(); 764builder.Services.AddTransient<SecretSetCommand>(); 765builder.Services.AddTransient<SecretGetCommand>(); 766builder.Services.AddTransient<SecretListCommand>(); 767builder.Services.AddTransient<SecretPathCommand>(); 768builder.Services.AddTransient<SecretDeleteCommand>(); 769builder.Services.AddTransient<AspireSecretsStoreResolver>(); 770builder.Services.AddTransient<SdkCommand>(); 771builder.Services.AddTransient<SdkGenerateCommand>(); 772builder.Services.AddTransient<SdkDumpCommand>(); 773builder.Services.AddTransient<SdkExportCommand>(); 774builder.Services.AddTransient<RestoreCommand>(); 776builder.Services.AddTransient<SetupCommand>(); 778builder.Services.AddTransient<RenderCommand>(); 780builder.Services.AddTransient<RootCommand>(); 781builder.Services.AddTransient<ExtensionInternalCommand>();
Aspire.Cli.Tests (86)
Utils\CliTestHelper.cs (86)
215services.AddTransient<LayoutProcessRunner>(); 216services.AddTransient<ProcessTreeGracefulShutdownService>(); 225services.AddTransient<OrphanedAppHostCollector>(); 291services.AddTransient<AppHostConnectionResolver>(); 292services.AddTransient<RootCommand>(); 293services.AddTransient<NewCommand>(); 294services.AddTransient<InitCommand>(); 295services.AddTransient<AppHostLauncher>(); 296services.AddTransient<DcpWorkloadCleanupService>(); 297services.AddTransient<RunCommand>(); 298services.AddTransient<TestCommand>(); 299services.AddTransient<StopCommand>(); 300services.AddTransient<StartCommand>(); 301services.AddTransient<ResourceCommand>(); 302services.AddTransient<LsCommand>(); 303services.AddTransient<PsCommand>(); 304services.AddTransient<DescribeCommand>(); 305services.AddTransient<LogsCommand>(); 306services.AddTransient<TerminalCommand>(); 307services.AddTransient<TerminalResourceResolver>(); 308services.AddTransient<TerminalAttachCommand>(); 309services.AddTransient<TerminalPsCommand>(); 310services.AddTransient<TerminalTapeCommand>(); 311services.AddTransient<TerminalTapePlayCommand>(); 312services.AddTransient<IntegrationPackageSearchService>(); 313services.AddTransient<IntegrationCommand>(); 314services.AddTransient<IntegrationListCommand>(); 315services.AddTransient<IntegrationSearchCommand>(); 316services.AddTransient<AddCommand>(); 317services.AddTransient<DeployCommand>(); 318services.AddTransient<DestroyCommand>(); 319services.AddTransient<DoCommand>(); 320services.AddTransient<PublishCommand>(); 321services.AddTransient<ConfigCommand>(); 322services.AddTransient<TemplateManagementCommand>(); 323services.AddTransient<CompletionsCommand>(); 324services.AddTransient<CacheCommand>(); 325services.AddTransient<CertificatesCommand>(); 326services.AddTransient<CertificatesCleanCommand>(); 327services.AddTransient<CertificatesTrustCommand>(); 328services.AddTransient<DoctorCommand>(); 329services.AddTransient<DashboardCommand>(); 330services.AddTransient<DashboardRunCommand>(); 331services.AddTransient<TrayCommand>(); 332services.AddTransient<TrayStartCommand>(); 333services.AddTransient<TrayStopCommand>(); 334services.AddTransient<TrayLifecycleService>(); 335services.AddTransient<UpdateCommand>(); 336services.AddTransient<SetupCommand>(); 337services.AddTransient<McpCommand>(); 338services.AddTransient<McpStartCommand>(); 339services.AddTransient<McpInitCommand>(); 340services.AddTransient<McpToolsCommand>(); 341services.AddTransient<McpCallCommand>(); 342services.AddTransient<AgentCommand>(); 343services.AddTransient<AgentMcpCommand>(); 344services.AddTransient<AgentInitCommand>(); 345services.AddTransient<AgentTelemetryCommand>(); 347services.AddTransient<TelemetryCommand>(); 348services.AddTransient<TelemetryLogsCommand>(); 349services.AddTransient<TelemetrySpansCommand>(); 350services.AddTransient<TelemetryTracesCommand>(); 351services.AddTransient<ExportCommand>(); 352services.AddTransient<ExtensionInternalCommand>(); 353services.AddTransient<WaitCommand>(); 354services.AddTransient<RestoreCommand>(); 356services.AddTransient<SdkCommand>(); 357services.AddTransient<SdkGenerateCommand>(); 358services.AddTransient<SdkDumpCommand>(); 359services.AddTransient<SdkExportCommand>(); 360services.AddTransient<ApiCommand>(); 361services.AddTransient<ApiListCommand>(); 362services.AddTransient<ApiSearchCommand>(); 363services.AddTransient<ApiGetCommand>(); 364services.AddTransient<DocsCommand>(); 365services.AddTransient<DocsListCommand>(); 366services.AddTransient<DocsSearchCommand>(); 367services.AddTransient<DocsGetCommand>(); 368services.AddTransient<SecretCommand>(); 369services.AddTransient<SecretSetCommand>(); 370services.AddTransient<SecretGetCommand>(); 371services.AddTransient<SecretListCommand>(); 372services.AddTransient<SecretPathCommand>(); 373services.AddTransient<SecretDeleteCommand>(); 374services.AddTransient<AspireSecretsStoreResolver>(); 376services.AddTransient<RenderCommand>();
Aspire.Dashboard (5)
DashboardWebApplication.cs (5)
430builder.Services.AddTransient<StructuredLogsViewModel>(); 432builder.Services.AddTransient<OtlpLogsService>(); 433builder.Services.AddTransient<OtlpTraceService>(); 434builder.Services.AddTransient<OtlpMetricsService>(); 439builder.Services.AddTransient<TracesViewModel>();
Aspire.Dashboard.Components.Tests (4)
Layout\ResourcesLayoutTests.cs (1)
2919Services.AddTransient<TracesViewModel>();
Pages\StructuredLogsTests.cs (1)
690Services.AddTransient<StructuredLogsViewModel>();
Pages\TracesTests.cs (1)
442Services.AddTransient<TracesViewModel>();
Shared\ResourceSetupHelpers.cs (1)
131context.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)
36_ = services.AddTransient<HttpLatencyTelemetryHandler>();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\HttpClientLoggingExtensionsTest.cs (1)
701serviceCollection.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>>()