1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
121ServiceProvider = _serviceProvider,
18 references to ServiceProvider
Aspire.Hosting (6)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
25var orchestrator = context.ServiceProvider.GetRequiredService<ApplicationOrchestrator>(); 58var orchestrator = context.ServiceProvider.GetRequiredService<ApplicationOrchestrator>(); 91var orchestrator = context.ServiceProvider.GetRequiredService<ApplicationOrchestrator>();
ResourceBuilderExtensions.cs (3)
1818var httpClient = context.ServiceProvider.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName); 1824ServiceProvider = context.ServiceProvider, 1840ServiceProvider = 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>(); 161var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 173var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 214var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 236var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>();
Program.cs (2)
107await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-stop", c.CancellationToken); 116await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-start", c.CancellationToken);