1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
134ServiceProvider = _serviceProvider,
25 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)
2181var httpClient = context.ServiceProvider.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName); 2187ServiceProvider = context.ServiceProvider, 2203ServiceProvider = context.ServiceProvider,
Stress.AppHost (19)
InteractionCommands.cs (17)
17var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 35var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 47var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 68var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 105var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 130var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 140var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 180var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 192var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 266var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 278var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 405var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 417var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 504var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 516var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 557var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 580var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>();
Program.cs (2)
113await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-stop", c.CancellationToken); 122await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-start", c.CancellationToken);