1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
157
ServiceProvider
= _serviceProvider,
30 references to ServiceProvider
Aspire.Hosting (10)
ApplicationModel\CommandsConfigurationExtensions.cs (7)
27
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
60
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
99
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
184
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
185
var resourceNotificationService = context.
ServiceProvider
.GetRequiredService<ResourceNotificationService>();
186
var loggerService = context.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
187
var model = context.
ServiceProvider
.GetRequiredService<DistributedApplicationModel>();
ResourceBuilderExtensions.cs (3)
2469
var httpClient = context.
ServiceProvider
.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName);
2475
ServiceProvider = context.
ServiceProvider
,
2491
ServiceProvider = context.
ServiceProvider
,
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
393
var interactionService = context.
ServiceProvider
.GetRequiredService<IInteractionService>();
Stress.AppHost (19)
InteractionCommands.cs (17)
18
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
36
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
48
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
69
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
106
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
131
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
141
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
181
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
193
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
267
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
279
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
406
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
418
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
505
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
517
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
558
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
581
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
Program.cs (2)
115
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, KnownResourceCommands.StopCommand, c.CancellationToken);
124
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, KnownResourceCommands.StartCommand, c.CancellationToken);