2 implementations of ExecutionContext
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
75public DistributedApplicationExecutionContext ExecutionContext { get; }
Aspire.Hosting.Tests (1)
Utils\TestDistributedApplicationBuilder.cs (1)
125public DistributedApplicationExecutionContext ExecutionContext => _innerBuilder.ExecutionContext;
31 references to ExecutionContext
Aspire.Hosting (10)
ExecutableResourceBuilderExtensions.cs (1)
112if (!builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
IDistributedApplicationBuilder.cs (1)
84/// The <see cref="ExecutionContext"/> property provides access key information about the context
ParameterResourceBuilderExtensions.cs (2)
129if (persist && builder.ExecutionContext.IsRunMode && builder.AppHostAssembly is not null) 327if (builder.ExecutionContext.IsRunMode && builder.AppHostAssembly is not null)
ProjectResourceBuilderExtensions.cs (6)
299if (builder.ApplicationBuilder.ExecutionContext.IsRunMode && builder.ApplicationBuilder.Environment.IsDevelopment()) 311if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode) 385if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode) 411if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 641if (!builder.ApplicationBuilder.ExecutionContext.IsPublishMode) 803var host = builder.ApplicationBuilder.ExecutionContext.IsRunMode &&
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppContainerExtensions.cs (1)
36if (!container.ApplicationBuilder.ExecutionContext.IsPublishMode)
AzureContainerAppExecutableExtensions.cs (1)
36if (!executable.ApplicationBuilder.ExecutionContext.IsPublishMode)
AzureContainerAppProjectExtensions.cs (1)
37if (!project.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.ApplicationInsights (1)
AzureApplicationInsightsExtensions.cs (1)
66else if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
71if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
149if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.Functions (3)
AzureFunctionsProjectResourceExtensions.cs (3)
50if (builder.ExecutionContext.IsPublishMode) 120if (builder.ExecutionContext.IsPublishMode) 157if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
207if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
152if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
231if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRExtensions.cs (1)
92if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (2)
151if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode) 228if (distributedApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
93if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Keycloak (1)
KeycloakResourceBuilderExtensions.cs (1)
75if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
85if (builder.ExecutionContext.IsPublishMode)
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
251if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Tests (1)
DistributedApplicationBuilderTests.cs (1)
24Assert.Equal(operation, builder.ExecutionContext.Operation);
WebPubSub.AppHost (1)
Program.cs (1)
10if (builder.ExecutionContext.IsPublishMode)