30 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)
482var model = context.ExecutionContext.Services.GetRequiredService<DistributedApplicationModel>();
OtlpConfigurationExtensions.cs (2)
93if (context.ExecutionContext.IsPublishMode) 276model = context.ExecutionContext.Services.GetService<DistributedApplicationModel>();
ResourceBuilderExtensions.cs (2)
458if (!context.ExecutionContext.IsPublishMode) 1650if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
2830if (credential.EmitEnvironmentVariables(environmentVariables, credPrefix, separator, entra, builder.Resource, context.ExecutionContext))
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
270if (context.ExecutionContext.IsPublishMode)
Aspire.Hosting.Blazor (2)
BlazorGatewayExtensions.cs (2)
411if (context.ExecutionContext.IsPublishMode) 899model = context.ExecutionContext.Services.GetService<DistributedApplicationModel>();
Aspire.Hosting.Dotnet (2)
DotnetProjectBuildCoordinator.cs (2)
968context.ExecutionContext, 980context.ExecutionContext,
Aspire.Hosting.Go (3)
GoRunDebugging.cs (3)
34context.ExecutionContext, context.Logger, original, "GOFLAGS", context.CancellationToken).ConfigureAwait(false))?.Value; 109context.ExecutionContext, context.Logger, value, name, context.CancellationToken).ConfigureAwait(false); 121var runner = context.ExecutionContext.Services.GetRequiredService<IProcessRunner>();
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1239if (context.ExecutionContext.IsRunMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
161var bootstrapServers = context.ExecutionContext.IsRunMode 244var advertisedListeners = context.ExecutionContext.IsRunMode
Aspire.Hosting.Kubernetes (2)
KubernetesPersistentVolumeExtensions.cs (2)
361var store = context.ExecutionContext.Services.GetRequiredService<IAspireStore>(); 525var store = context.ExecutionContext.Services.GetRequiredService<IAspireStore>();
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
503var config = context.ExecutionContext.Services.GetRequiredService<IConfiguration>(); 504if (context.ExecutionContext.IsRunMode && config.GetValue<bool>("CODESPACES", false))
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
395if (OperatingSystem.IsWindows() && context.ExecutionContext.IsRunMode)
Aspire.Hosting.Tests (3)
Orchestrator\ParameterProcessorTests.cs (1)
962var sp = context.ExecutionContext.Services;
WithCertificateAuthorityCollection.cs (1)
24var sp = context.ExecutionContext.Services;
WithEnvironmentTests.cs (1)
32var sp = context.ExecutionContext.Services;
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
81var developerCertificateService = ctx.ExecutionContext.Services.GetRequiredService<IDeveloperCertificateService>();