24 references to ExecutionContext
Aspire.Hosting (9)
ApplicationModel\VolumeMountBindingAnnotation.cs (3)
81if (context.ExecutionContext.IsPublishMode || context.Resource is ContainerResource) 86if (context.ExecutionContext.IsPublishMode) 119var store = context.ExecutionContext.Services.GetRequiredService<IAspireStore>();
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
14if (context.ExecutionContext.IsPublishMode)
Dashboard\DashboardEventHandlers.cs (1)
636var model = context.ExecutionContext.Services.GetRequiredService<DistributedApplicationModel>();
OtlpConfigurationExtensions.cs (2)
61if (context.ExecutionContext.IsPublishMode) 197model = context.ExecutionContext.Services.GetService<DistributedApplicationModel>();
ResourceBuilderExtensions.cs (2)
442if (!context.ExecutionContext.IsPublishMode) 1338if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
222if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Blazor (2)
BlazorGatewayExtensions.cs (2)
349if (context.ExecutionContext.IsPublishMode) 747model = context.ExecutionContext.Services.GetService<DistributedApplicationModel>();
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1242if (context.ExecutionContext.IsRunMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
142var bootstrapServers = context.ExecutionContext.IsRunMode 225var advertisedListeners = context.ExecutionContext.IsRunMode
Aspire.Hosting.Kubernetes (2)
KubernetesPersistentVolumeExtensions.cs (2)
273var store = context.ExecutionContext.Services.GetRequiredService<IAspireStore>(); 437var store = context.ExecutionContext.Services.GetRequiredService<IAspireStore>();
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
427var config = context.ExecutionContext.Services.GetRequiredService<IConfiguration>(); 428if (context.ExecutionContext.IsRunMode && config.GetValue<bool>("CODESPACES", false))
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
396if (OperatingSystem.IsWindows() && context.ExecutionContext.IsRunMode)
Aspire.Hosting.Tests (3)
Orchestrator\ParameterProcessorTests.cs (1)
801var sp = context.ExecutionContext.Services;
WithCertificateAuthorityCollection.cs (1)
24var sp = context.ExecutionContext.Services;
WithEnvironmentTests.cs (1)
24var sp = context.ExecutionContext.Services;
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
82var developerCertificateService = ctx.ExecutionContext.Services.GetRequiredService<IDeveloperCertificateService>();