1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
134
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)
1923
var httpClient = context.
ServiceProvider
.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName);
1929
ServiceProvider = context.
ServiceProvider
,
1945
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>();
163
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
175
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
216
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
239
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);