75 references to AddScoped
Aspire.Dashboard (23)
DashboardWebApplication.cs (23)
397builder.Services.AddScoped<DashboardDataSource>(); 417builder.Services.AddScoped<ResourceTagStore>(); 418builder.Services.AddScoped<ResourceOrderStore>(); 419builder.Services.AddScoped<MetricPinStore>(); 445builder.Services.AddScoped<NavigationDialogService>(); 452builder.Services.AddScoped<ThemeManager>(); 454builder.Services.AddScoped<ShortcutManager>(); 455builder.Services.AddScoped<ConsoleLogsManager>(); 456builder.Services.AddScoped<ConsoleLogsFetcher>(); 457builder.Services.AddScoped<TelemetryExportService>(); 458builder.Services.AddScoped<TelemetryImportService>(); 462builder.Services.AddScoped<BrowserTimeProvider>(); 476builder.Services.AddScoped<DimensionManager>(); 477builder.Services.AddScoped<DashboardDialogService>(); 481builder.Services.AddScoped<DashboardMessageBarService>(); 482builder.Services.AddScoped<ParameterInteractionState>(); 483builder.Services.AddScoped<ResourceMenuBuilder>(); 484builder.Services.AddScoped<ResourcePaneState>(); 485builder.Services.AddScoped<TerminalDockState>(); 486builder.Services.AddScoped<DashboardViewPreferences>(); 487builder.Services.AddScoped<StructuredLogMenuBuilder>(); 488builder.Services.AddScoped<SpanMenuBuilder>(); 489builder.Services.AddScoped<TraceMenuBuilder>();
Aspire.Dashboard.Components.Tests (25)
Dialogs\HelpDialogTests.cs (1)
153Services.AddScoped<DashboardViewPreferences>();
Dialogs\ManageDataDialogTests.cs (2)
335Services.AddScoped<ConsoleLogsFetcher>(); 336Services.AddScoped<TelemetryExportService>();
Interactions\InteractionsProviderTests.cs (3)
942Services.AddScoped<DashboardDialogService>(); 943Services.AddScoped<DashboardMessageBarService>(); 944Services.AddScoped<ParameterInteractionState>();
Model\DashboardCommandExecutorTests.cs (1)
75Services.AddScoped<DashboardCommandExecutor>();
Pages\ConsoleLogsTests.cs (1)
1293Services.AddScoped<DashboardCommandExecutor>();
Shared\FluentUISetupHelpers.cs (16)
242context.Services.AddScoped<NavigationDialogService>(); 261context.Services.AddScoped<DashboardDataSource>(); 274context.Services.AddScoped<DashboardDialogService>(); 275context.Services.AddScoped<DashboardMessageBarService>(); 276context.Services.AddScoped<ParameterInteractionState>(); 277context.Services.AddScoped<ResourceMenuBuilder>(); 278context.Services.AddScoped<StructuredLogMenuBuilder>(); 279context.Services.AddScoped<SpanMenuBuilder>(); 280context.Services.AddScoped<TraceMenuBuilder>(); 283context.Services.AddScoped<ResourceTagStore>(); 284context.Services.AddScoped<ResourceOrderStore>(); 285context.Services.AddScoped<MetricPinStore>(); 286context.Services.AddScoped<ResourcePaneState>(); 287context.Services.AddScoped<Aspire.Dashboard.Components.Layout.TerminalDockState>(); 288context.Services.AddScoped<DashboardViewPreferences>(); 386context.Services.AddScoped<NavigationDialogService>();
Shared\TerminalsSetupHelpers.cs (1)
38context.Services.AddScoped<DashboardCommandExecutor>();
Aspire.Hosting.RemoteHost (10)
RemoteHostServer.cs (10)
114services.AddScoped<HandleRegistry>(); 118services.AddScoped<CodeGenerationService>(); 119services.AddScoped<LanguageService>(); 120services.AddScoped<JsonRpcAuthenticationState>(); 121services.AddScoped<CancellationTokenRegistry>(); 122services.AddScoped<JsonRpcCallbackInvoker>(); 124services.AddScoped<AtsCallbackProxyFactory>(); 127services.AddScoped<AtsMarshaller>(); 128services.AddScoped<CapabilityDispatcher>(); 129services.AddScoped<RemoteAppHostService>();
Aspire.Hosting.RemoteHost.Tests (10)
JsonRpcAuthenticationTests.cs (10)
355services.AddScoped<CodeGeneration.CodeGenerationService>(); 357services.AddScoped<Language.LanguageService>(); 368services.AddScoped<JsonRpcAuthenticationState>(); 369services.AddScoped<HandleRegistry>(); 370services.AddScoped<CancellationTokenRegistry>(); 371services.AddScoped<JsonRpcCallbackInvoker>(); 373services.AddScoped<Ats.AtsCallbackProxyFactory>(); 375services.AddScoped<Ats.AtsMarshaller>(); 376services.AddScoped<Ats.CapabilityDispatcher>(); 377services.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>>()