1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
134ServiceProvider = _serviceProvider,
18 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)
1956var httpClient = context.ServiceProvider.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName); 1962ServiceProvider = context.ServiceProvider, 1978ServiceProvider = context.ServiceProvider,
Stress.AppHost (12)
InteractionCommands.cs (10)
17var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 35var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 47var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 68var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 93var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 103var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 177var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 189var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 230var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 253var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>();
Program.cs (2)
113await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-stop", c.CancellationToken); 122await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-start", c.CancellationToken);