1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
121
ServiceProvider
= _serviceProvider,
18 references to ServiceProvider
Aspire.Hosting (6)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
25
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
58
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
91
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
ResourceBuilderExtensions.cs (3)
1818
var httpClient = context.
ServiceProvider
.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName);
1824
ServiceProvider = context.
ServiceProvider
,
1840
ServiceProvider = context.
ServiceProvider
,
Stress.AppHost (12)
InteractionCommands.cs (10)
17
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
35
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
47
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
68
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
93
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
103
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
161
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
173
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
214
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
236
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
Program.cs (2)
107
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, "resource-stop", c.CancellationToken);
116
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, "resource-start", c.CancellationToken);