12 references to ExecutionContext
Aspire.Hosting (6)
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>();
ResourceBuilderExtensions.cs (2)
185if (!context.ExecutionContext.IsPublishMode && !ExternalServiceResource.UrlIsValidForExternalService(url, out var _, out var message)) 537if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
107if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
136var bootstrapServers = context.ExecutionContext.IsRunMode 214var 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;