10 references to ExecutionContext
Aspire.Hosting (4)
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
14if (context.ExecutionContext.IsPublishMode)
Dashboard\DashboardLifecycleHook.cs (1)
230var model = context.ExecutionContext.ServiceProvider.GetRequiredService<DistributedApplicationModel>();
OtlpConfigurationExtensions.cs (2)
40if (context.ExecutionContext.IsPublishMode) 67var dcpDependencyCheckService = context.ExecutionContext.ServiceProvider.GetRequiredService<IDcpDependencyCheckService>();
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
106if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
139var bootstrapServers = context.ExecutionContext.IsRunMode 217var advertisedListeners = context.ExecutionContext.IsRunMode
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
354var config = context.ExecutionContext.ServiceProvider.GetRequiredService<IConfiguration>(); 355if (context.ExecutionContext.IsRunMode && config.GetValue<bool>("CODESPACES", false))
Aspire.Hosting.Tests (1)
WithEnvironmentTests.cs (1)
24var sp = context.ExecutionContext.ServiceProvider;