75 references to AddScoped
Aspire.Dashboard (23)
DashboardWebApplication.cs (23)
375builder.Services.AddScoped<DashboardDataSource>(); 394builder.Services.AddScoped<ResourceTagStore>(); 395builder.Services.AddScoped<ResourceOrderStore>(); 396builder.Services.AddScoped<MetricPinStore>(); 422builder.Services.AddScoped<NavigationDialogService>(); 429builder.Services.AddScoped<ThemeManager>(); 431builder.Services.AddScoped<ShortcutManager>(); 432builder.Services.AddScoped<ConsoleLogsManager>(); 433builder.Services.AddScoped<ConsoleLogsFetcher>(); 434builder.Services.AddScoped<TelemetryExportService>(); 435builder.Services.AddScoped<TelemetryImportService>(); 439builder.Services.AddScoped<BrowserTimeProvider>(); 453builder.Services.AddScoped<DimensionManager>(); 454builder.Services.AddScoped<DashboardDialogService>(); 458builder.Services.AddScoped<DashboardMessageBarService>(); 459builder.Services.AddScoped<ParameterInteractionState>(); 460builder.Services.AddScoped<ResourceMenuBuilder>(); 461builder.Services.AddScoped<ResourcePaneState>(); 462builder.Services.AddScoped<TerminalDockState>(); 463builder.Services.AddScoped<DashboardViewPreferences>(); 464builder.Services.AddScoped<StructuredLogMenuBuilder>(); 465builder.Services.AddScoped<SpanMenuBuilder>(); 466builder.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)
844Services.AddScoped<DashboardDialogService>(); 845Services.AddScoped<DashboardMessageBarService>(); 846Services.AddScoped<ParameterInteractionState>();
Model\DashboardCommandExecutorTests.cs (1)
75Services.AddScoped<DashboardCommandExecutor>();
Pages\ConsoleLogsTests.cs (1)
1116Services.AddScoped<DashboardCommandExecutor>();
Shared\FluentUISetupHelpers.cs (16)
233context.Services.AddScoped<NavigationDialogService>(); 252context.Services.AddScoped<DashboardDataSource>(); 265context.Services.AddScoped<DashboardDialogService>(); 266context.Services.AddScoped<DashboardMessageBarService>(); 267context.Services.AddScoped<ParameterInteractionState>(); 268context.Services.AddScoped<ResourceMenuBuilder>(); 269context.Services.AddScoped<StructuredLogMenuBuilder>(); 270context.Services.AddScoped<SpanMenuBuilder>(); 271context.Services.AddScoped<TraceMenuBuilder>(); 274context.Services.AddScoped<ResourceTagStore>(); 275context.Services.AddScoped<ResourceOrderStore>(); 276context.Services.AddScoped<MetricPinStore>(); 277context.Services.AddScoped<ResourcePaneState>(); 278context.Services.AddScoped<Aspire.Dashboard.Components.Layout.TerminalDockState>(); 279context.Services.AddScoped<DashboardViewPreferences>(); 377context.Services.AddScoped<NavigationDialogService>();
Shared\TerminalsSetupHelpers.cs (1)
38context.Services.AddScoped<DashboardCommandExecutor>();
Aspire.Hosting.RemoteHost (10)
RemoteHostServer.cs (10)
113services.AddScoped<HandleRegistry>(); 117services.AddScoped<CodeGenerationService>(); 118services.AddScoped<LanguageService>(); 119services.AddScoped<JsonRpcAuthenticationState>(); 120services.AddScoped<CancellationTokenRegistry>(); 121services.AddScoped<JsonRpcCallbackInvoker>(); 123services.AddScoped<AtsCallbackProxyFactory>(); 126services.AddScoped<AtsMarshaller>(); 127services.AddScoped<CapabilityDispatcher>(); 128services.AddScoped<RemoteAppHostService>();
Aspire.Hosting.RemoteHost.Tests (10)
JsonRpcAuthenticationTests.cs (10)
350services.AddScoped<CodeGeneration.CodeGenerationService>(); 352services.AddScoped<Language.LanguageService>(); 362services.AddScoped<JsonRpcAuthenticationState>(); 363services.AddScoped<HandleRegistry>(); 364services.AddScoped<CancellationTokenRegistry>(); 365services.AddScoped<JsonRpcCallbackInvoker>(); 367services.AddScoped<Ats.AtsCallbackProxyFactory>(); 369services.AddScoped<Ats.AtsMarshaller>(); 370services.AddScoped<Ats.CapabilityDispatcher>(); 371services.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>>()