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