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