1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
108
ServiceProvider
= _serviceProvider,
17 references to ServiceProvider
Aspire.Hosting (6)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
24
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
57
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
90
var orchestrator = context.
ServiceProvider
.GetRequiredService<ApplicationOrchestrator>();
ResourceBuilderExtensions.cs (3)
1813
var httpClient = context.
ServiceProvider
.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName);
1819
ServiceProvider = context.
ServiceProvider
,
1835
ServiceProvider = context.
ServiceProvider
,
Stress.AppHost (11)
InteractionCommands.cs (9)
17
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
35
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
47
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
65
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
90
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
100
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
158
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
170
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
192
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
Program.cs (2)
105
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, "resource-stop", c.CancellationToken);
114
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, "resource-start", c.CancellationToken);