65 references to IsRunMode
Aspire.Hosting (26)
ContainerResourceBuilderExtensions.cs (1)
1050if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Dashboard\DashboardEventHandlers.cs (2)
63Debug.Assert(executionContext.IsRunMode, "Dashboard resource should only be added in run mode"); 786if (execContext.IsRunMode)
DistributedApplication.cs (2)
386if (executionContext.IsPublishMode || executionContext.IsRunMode) 438if (executionContext.IsPublishMode || executionContext.IsRunMode)
DistributedApplicationBuilder.cs (3)
305if (ExecutionContext.IsRunMode && !isExecMode) 386if (ExecutionContext.IsRunMode) 481if (ExecutionContext.IsRunMode)
DistributedApplicationLifecycle.cs (2)
24if (executionContext.IsRunMode) 41if (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
Orchestrator\ParameterProcessor.cs (4)
237if (executionContext.IsRunMode) 254var showNotification = executionContext.IsRunMode; 255var showSaveToSecrets = executionContext.IsRunMode; 349if (executionContext.IsRunMode && showSaveToSecrets && saveParameters?.Value is not null)
ParameterResourceBuilderExtensions.cs (6)
128/// <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c> 140if (persist && builder.ExecutionContext.IsRunMode && builder.AppHostAssembly is not null) 301/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 331/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 349if (builder.ExecutionContext.IsRunMode && builder.AppHostAssembly is not null) 361/// 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)
302if (builder.ApplicationBuilder.ExecutionContext.IsRunMode && builder.ApplicationBuilder.Environment.IsDevelopment()) 415if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 845var host = builder.ApplicationBuilder.ExecutionContext.IsRunMode &&
ResourceBuilderExtensions.cs (1)
2375if (!builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure (8)
AzureEnvironmentResourceExtensions.cs (1)
34if (builder.ExecutionContext.IsRunMode)
AzureResourcePreparer.cs (4)
84return executionContext.IsRunMode || options.Value.SupportsTargetedRoleAssignments; 159if (executionContext.IsRunMode) 168if (executionContext.IsRunMode) 216if (executionContext.IsRunMode)
AzureUserAssignedIdentityExtensions.cs (1)
39if (builder.ExecutionContext.IsRunMode)
Provisioning\Provisioners\AzureProvisioner.cs (1)
290if (executionContext.IsRunMode)
Provisioning\Provisioners\BicepProvisioner.cs (1)
208if (context.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppExtensions.cs (1)
329if (builder.ExecutionContext.IsRunMode)
AzureContainerAppsInfrastructure.cs (1)
73if (!executionContext.IsRunMode)
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryExtensions.cs (1)
57if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
398if (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 (2)
AzureRedisEnterpriseExtensions.cs (1)
139if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
AzureRedisExtensions.cs (1)
204if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (1)
318if (distributedApplicationBuilder.ExecutionContext.IsRunMode)
AzureSqlServerResource.cs (1)
155var isRunMode = roleAssignmentContext.ExecutionContext.IsRunMode;
Aspire.Hosting.Azure.Tests (1)
AzureResourcePreparerTests.cs (1)
262Assert.False(capturedExecutionContext.IsRunMode);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentExtensions.cs (1)
48if (builder.ExecutionContext.IsRunMode)
DockerComposeInfrastructure.cs (1)
22if (executionContext.IsRunMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
137var bootstrapServers = context.ExecutionContext.IsRunMode 215var advertisedListeners = context.ExecutionContext.IsRunMode
Aspire.Hosting.Keycloak (1)
KeycloakResourceBuilderExtensions.cs (1)
75if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Kubernetes (2)
KubernetesEnvironmentExtensions.cs (1)
42if (builder.ExecutionContext.IsRunMode)
KubernetesInfrastructure.cs (1)
21if (executionContext.IsRunMode)
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
354if (context.ExecutionContext.IsRunMode && config.GetValue<bool>("CODESPACES", false))
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
260if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Tests (4)
OperationModesTests.cs (3)
38Assert.True(context.IsRunMode); 67Assert.True(context.IsRunMode); 96Assert.True(context.IsRunMode);
Utils\VolumeNameGeneratorTests.cs (1)
117Assert.True(builder.ExecutionContext.IsRunMode);
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
38if (builder.ExecutionContext.IsRunMode)
AspireWithNode.AppHost (4)
DevCertHostingExtensions.cs (2)
12/// <paramref name="builder"/>.<see cref="IResourceBuilder{T}.ApplicationBuilder">ApplicationBuilder</see>.<see cref="IDistributedApplicationBuilder.ExecutionContext">ExecutionContext</see>.<see cref="DistributedApplicationExecutionContext.IsRunMode">IsRunMode</see><c> == true</c>.<br/> 23if (builder.ApplicationBuilder.ExecutionContext.IsRunMode && builder.ApplicationBuilder.Environment.IsDevelopment())
NodeHostingExtensions.cs (2)
9/// <paramref name="builder"/>.<see cref="IResourceBuilder{T}.ApplicationBuilder">ApplicationBuilder</see>.<see cref="IDistributedApplicationBuilder.ExecutionContext">ExecutionContext</see>.<see cref="DistributedApplicationExecutionContext.IsRunMode">IsRunMode</see><c> == true</c>.<br/> 13if (builder.ApplicationBuilder.ExecutionContext.IsRunMode && builder.ApplicationBuilder.Environment.IsDevelopment())
AspireWithPython.AppHost (1)
AppHost.cs (1)
11if (builder.ExecutionContext.IsRunMode && builder.Environment.IsDevelopment())
TestShop.AppHost (1)
Program.cs (1)
34if (builder.Environment.IsDevelopment() && builder.ExecutionContext.IsRunMode)