1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
134
ServiceProvider
= _serviceProvider,
25 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)
2181
var httpClient = context.
ServiceProvider
.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName);
2187
ServiceProvider = context.
ServiceProvider
,
2203
ServiceProvider = context.
ServiceProvider
,
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)
113
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, "resource-stop", c.CancellationToken);
122
await ExecuteCommandForAllResourcesAsync(c.
ServiceProvider
, "resource-start", c.CancellationToken);