49 references to IsRunMode
Aspire.Hosting (20)
ContainerResourceBuilderExtensions.cs (1)
866if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Dashboard\DashboardLifecycleHook.cs (1)
52Debug.Assert(executionContext.IsRunMode, "Dashboard resource should only be added in run mode");
DistributedApplication.cs (2)
377if (executionContext.IsPublishMode || executionContext.IsRunMode) 423if (executionContext.IsPublishMode || executionContext.IsRunMode)
DistributedApplicationBuilder.cs (3)
287if (ExecutionContext.IsRunMode && !isExecMode) 369if (ExecutionContext.IsRunMode) 477if (ExecutionContext.IsRunMode)
DistributedApplicationLifecycle.cs (2)
23if (executionContext.IsRunMode) 40if (executionContext.IsRunMode)
IDistributedApplicationBuilder.cs (2)
87/// <see cref="DistributedApplicationExecutionContext.IsPublishMode"/> and <see cref="DistributedApplicationExecutionContext.IsRunMode"/> 93/// An example of using the <see cref="DistributedApplicationExecutionContext.IsRunMode"/> property on the <see cref="IDistributedApplicationBuilder"/> via
ParameterResourceBuilderExtensions.cs (6)
127/// <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c> 139if (persist && builder.ExecutionContext.IsRunMode && builder.AppHostAssembly is not null) 245/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 275/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 293if (builder.ExecutionContext.IsRunMode && builder.AppHostAssembly is not null) 305/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>.
ProjectResourceBuilderExtensions.cs (3)
299if (builder.ApplicationBuilder.ExecutionContext.IsRunMode && builder.ApplicationBuilder.Environment.IsDevelopment()) 412if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 837var host = builder.ApplicationBuilder.ExecutionContext.IsRunMode &&
Aspire.Hosting.Azure (6)
AzureEnvironmentResourceExtensions.cs (1)
34if (builder.ExecutionContext.IsRunMode)
AzureResourcePreparer.cs (4)
85return executionContext.IsRunMode || options.SupportsTargetedRoleAssignments; 160if (executionContext.IsRunMode) 169if (executionContext.IsRunMode) 217if (executionContext.IsRunMode)
AzureUserAssignedIdentityExtensions.cs (1)
39if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppExtensions.cs (1)
329if (builder.ExecutionContext.IsRunMode)
AzureContainerAppsInfrastructure.cs (1)
25if (executionContext.IsRunMode)
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryExtensions.cs (1)
57if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
395if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresExtensions.cs (2)
298if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 400if (distributedApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
204if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (1)
318if (distributedApplicationBuilder.ExecutionContext.IsRunMode)
AzureSqlServerResource.cs (1)
136var isRunMode = roleAssignmentContext.ExecutionContext.IsRunMode;
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentExtensions.cs (1)
48if (builder.ExecutionContext.IsRunMode)
DockerComposeInfrastructure.cs (1)
21if (executionContext.IsRunMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
136var bootstrapServers = context.ExecutionContext.IsRunMode 214var advertisedListeners = context.ExecutionContext.IsRunMode
Aspire.Hosting.Keycloak (1)
KeycloakResourceBuilderExtensions.cs (1)
75if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Kubernetes (2)
KubernetesEnvironmentExtensions.cs (1)
38if (builder.ExecutionContext.IsRunMode)
KubernetesInfrastructure.cs (1)
20if (executionContext.IsRunMode)
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
355if (context.ExecutionContext.IsRunMode && config.GetValue<bool>("CODESPACES", false))
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
260if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Tests (3)
OperationModesTests.cs (3)
39Assert.True(context.IsRunMode); 68Assert.True(context.IsRunMode); 97Assert.True(context.IsRunMode);
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
38if (builder.ExecutionContext.IsRunMode)
TestShop.AppHost (1)
Program.cs (1)
34if (builder.Environment.IsDevelopment() && builder.ExecutionContext.IsRunMode)