1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
134
ServiceProvider
= _serviceProvider,
26 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)
2242
var httpClient = context.
ServiceProvider
.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName);
2248
ServiceProvider = context.
ServiceProvider
,
2264
ServiceProvider = context.
ServiceProvider
,
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
389
var interactionService = context.
ServiceProvider
.GetRequiredService<IInteractionService>();
Stress.AppHost (19)
InteractionCommands.cs (17)
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>();
105
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
130
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
140
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
180
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
192
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
266
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
278
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
405
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
417
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
504
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
516
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
557
var interactionService = commandContext.
ServiceProvider
.GetRequiredService<IInteractionService>();
580
var resourceLoggerService = commandContext.
ServiceProvider
.GetRequiredService<ResourceLoggerService>();
Program.cs (2)
115
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, "resource-stop", c.CancellationToken);
124
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, "resource-start", c.CancellationToken);