15 references to ExecutionContext
Aspire.Hosting (5)
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
14if (context.ExecutionContext.IsPublishMode)
Dashboard\DashboardEventHandlers.cs (1)
520var model = context.ExecutionContext.ServiceProvider.GetRequiredService<DistributedApplicationModel>();
OtlpConfigurationExtensions.cs (1)
60if (context.ExecutionContext.IsPublishMode)
ResourceBuilderExtensions.cs (2)
184if (!context.ExecutionContext.IsPublishMode) 715if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
220if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
137var bootstrapServers = context.ExecutionContext.IsRunMode 215var 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.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
412if (OperatingSystem.IsWindows() && context.ExecutionContext.IsRunMode)
Aspire.Hosting.Tests (3)
Orchestrator\ParameterProcessorTests.cs (1)
789var sp = context.ExecutionContext.ServiceProvider;
WithCertificateAuthorityCollection.cs (1)
23var sp = context.ExecutionContext.ServiceProvider;
WithEnvironmentTests.cs (1)
23var sp = context.ExecutionContext.ServiceProvider;
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
100var developerCertificateService = ctx.ExecutionContext.ServiceProvider.GetRequiredService<IDeveloperCertificateService>();