1 write to ServiceProvider
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
157ServiceProvider = _serviceProvider,
30 references to ServiceProvider
Aspire.Hosting (10)
ApplicationModel\CommandsConfigurationExtensions.cs (7)
27var orchestrator = context.ServiceProvider.GetRequiredService<ApplicationOrchestrator>(); 60var orchestrator = context.ServiceProvider.GetRequiredService<ApplicationOrchestrator>(); 99var orchestrator = context.ServiceProvider.GetRequiredService<ApplicationOrchestrator>(); 184var orchestrator = context.ServiceProvider.GetRequiredService<ApplicationOrchestrator>(); 185var resourceNotificationService = context.ServiceProvider.GetRequiredService<ResourceNotificationService>(); 186var loggerService = context.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 187var model = context.ServiceProvider.GetRequiredService<DistributedApplicationModel>();
ResourceBuilderExtensions.cs (3)
2469var httpClient = context.ServiceProvider.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.HttpClientName ?? Options.DefaultName); 2475ServiceProvider = context.ServiceProvider, 2491ServiceProvider = context.ServiceProvider,
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
393var interactionService = context.ServiceProvider.GetRequiredService<IInteractionService>();
Stress.AppHost (19)
InteractionCommands.cs (17)
18var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 36var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 48var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 69var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 106var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 131var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 141var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 181var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 193var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 267var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 279var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 406var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 418var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 505var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>(); 517var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 558var interactionService = commandContext.ServiceProvider.GetRequiredService<IInteractionService>(); 581var resourceLoggerService = commandContext.ServiceProvider.GetRequiredService<ResourceLoggerService>();
Program.cs (2)
115await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, KnownResourceCommands.StopCommand, c.CancellationToken); 124await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, KnownResourceCommands.StartCommand, c.CancellationToken);