2 implementations of ExecutionContext
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
73public DistributedApplicationExecutionContext ExecutionContext { get; }
Aspire.Hosting.Tests (1)
Utils\TestDistributedApplicationBuilder.cs (1)
130public DistributedApplicationExecutionContext ExecutionContext => _innerBuilder.ExecutionContext;
28 references to ExecutionContext
Aspire.Hosting (8)
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 (5)
299if (builder.ApplicationBuilder.ExecutionContext.IsRunMode && builder.ApplicationBuilder.Environment.IsDevelopment()) 311if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode) 384if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode) 410if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 753var host = builder.ApplicationBuilder.ExecutionContext.IsRunMode &&
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppContainerExtensions.cs (1)
36if (!container.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)
113if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
115if (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)
249if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
182if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Azure.Sql (4)
AzureSqlExtensions.cs (4)
33if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 98if (builder.ExecutionContext.IsRunMode) 167if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode) 241if (distributedApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
92if (builder.ApplicationBuilder.ExecutionContext.IsPublishMode)
Aspire.Hosting.Keycloak (1)
KeycloakResourceBuilderExtensions.cs (1)
68if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
83if (builder.ExecutionContext.IsPublishMode)
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
240if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Tests (1)
DistributedApplicationBuilderTests.cs (1)
23Assert.Equal(operation, builder.ExecutionContext.Operation);
WebPubSub.AppHost (1)
Program.cs (1)
10if (builder.ExecutionContext.IsPublishMode)