51 references to AddScoped
Aspire.Dashboard (14)
DashboardWebApplication.cs (14)
292builder.Services.AddScoped<DashboardDataSource>(); 349builder.Services.AddScoped<ThemeManager>(); 351builder.Services.AddScoped<ShortcutManager>(); 352builder.Services.AddScoped<ConsoleLogsManager>(); 353builder.Services.AddScoped<ConsoleLogsFetcher>(); 354builder.Services.AddScoped<TelemetryExportService>(); 355builder.Services.AddScoped<TelemetryImportService>(); 359builder.Services.AddScoped<BrowserTimeProvider>(); 372builder.Services.AddScoped<DimensionManager>(); 373builder.Services.AddScoped<DashboardDialogService>(); 374builder.Services.AddScoped<ResourceMenuBuilder>(); 375builder.Services.AddScoped<StructuredLogMenuBuilder>(); 376builder.Services.AddScoped<SpanMenuBuilder>(); 377builder.Services.AddScoped<TraceMenuBuilder>();
Aspire.Dashboard.Components.Tests (10)
Dialogs\ManageDataDialogTests.cs (2)
283Services.AddScoped<ConsoleLogsFetcher>(); 284Services.AddScoped<TelemetryExportService>();
Interactions\InteractionsProviderTests.cs (1)
696Services.AddScoped<DashboardDialogService>();
Pages\ConsoleLogsTests.cs (1)
1135Services.AddScoped<DashboardCommandExecutor>();
Shared\FluentUISetupHelpers.cs (6)
227context.Services.AddScoped<DashboardDataSource>(); 242context.Services.AddScoped<DashboardDialogService>(); 243context.Services.AddScoped<ResourceMenuBuilder>(); 244context.Services.AddScoped<StructuredLogMenuBuilder>(); 245context.Services.AddScoped<SpanMenuBuilder>(); 246context.Services.AddScoped<TraceMenuBuilder>();
Aspire.Hosting.RemoteHost (10)
RemoteHostServer.cs (10)
88services.AddScoped<CodeGenerationService>(); 89services.AddScoped<LanguageService>(); 90services.AddScoped<JsonRpcAuthenticationState>(); 91services.AddScoped<HandleRegistry>(); 92services.AddScoped<CancellationTokenRegistry>(); 93services.AddScoped<JsonRpcCallbackInvoker>(); 95services.AddScoped<AtsCallbackProxyFactory>(); 98services.AddScoped<AtsMarshaller>(); 99services.AddScoped<CapabilityDispatcher>(); 100services.AddScoped<RemoteAppHostService>();
Aspire.Hosting.RemoteHost.Tests (10)
JsonRpcAuthenticationTests.cs (10)
169services.AddScoped<CodeGeneration.CodeGenerationService>(); 171services.AddScoped<Language.LanguageService>(); 173services.AddScoped<JsonRpcAuthenticationState>(); 174services.AddScoped<HandleRegistry>(); 175services.AddScoped<CancellationTokenRegistry>(); 176services.AddScoped<JsonRpcCallbackInvoker>(); 178services.AddScoped<Ats.AtsCallbackProxyFactory>(); 180services.AddScoped<Ats.AtsMarshaller>(); 181services.AddScoped<Ats.CapabilityDispatcher>(); 182services.AddScoped<RemoteAppHostService>();
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\TestReadinessHostingStartup.cs (1)
41services.AddScoped<TestSessionContext>();
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Extensions\ServiceCollectionDescriptorExtensions.cs (1)
279/// <seealso cref="ServiceCollectionServiceExtensions.AddScoped{TService}(IServiceCollection)"/>
Microsoft.Extensions.Hosting.Testing.Tests (2)
FakeHostBuilderTests.cs (2)
131services.AddScoped<InnerClass>() 149services.AddScoped<InnerClass>()
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (3)
DependencyInjectionExtensionsTests.cs (3)
213.AddScoped<TestDependency>() 226.AddScoped<Pooled<TestClass>>() 318.AddScoped<Pooled<TestClass>>()