68 references to IsRunMode
Aspire.Hosting (28)
ApplicationModel\ResourceExtensions.cs (1)
417if (executionContext.IsRunMode && trustDevCert)
ContainerResourceBuilderExtensions.cs (1)
1234if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Dashboard\DashboardEventHandlers.cs (2)
64Debug.Assert(executionContext.IsRunMode, "Dashboard resource should only be added in run mode"); 829if (execContext.IsRunMode)
DistributedApplication.cs (2)
386if (executionContext.IsPublishMode || executionContext.IsRunMode) 438if (executionContext.IsPublishMode || executionContext.IsRunMode)
DistributedApplicationBuilder.cs (3)
342if (ExecutionContext.IsRunMode && !isExecMode) 429if (ExecutionContext.IsRunMode) 546if (ExecutionContext.IsRunMode)
DistributedApplicationLifecycle.cs (2)
24if (executionContext.IsRunMode) 41if (executionContext.IsRunMode)
IDistributedApplicationBuilder.cs (2)
91/// <see cref="DistributedApplicationExecutionContext.IsPublishMode"/> and <see cref="DistributedApplicationExecutionContext.IsRunMode"/> 97/// An example of using the <see cref="DistributedApplicationExecutionContext.IsRunMode"/> property on the <see cref="IDistributedApplicationBuilder"/> via
Orchestrator\ParameterProcessor.cs (4)
234if (executionContext.IsRunMode) 252var showNotification = executionContext.IsRunMode; 253var showSaveToSecrets = executionContext.IsRunMode; 346if (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)
416if (builder.ApplicationBuilder.ExecutionContext.IsRunMode && builder.ApplicationBuilder.Environment.IsDevelopment()) 549if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 994var host = builder.ApplicationBuilder.ExecutionContext.IsRunMode &&
ResourceBuilderExtensions.cs (1)
2712if (!builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Utils\DockerfileHelper.cs (1)
40if (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)
282if (executionContext.IsRunMode)
Provisioning\Provisioners\BicepProvisioner.cs (1)
219if (context.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppExtensions.cs (1)
330if (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.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
321if (OperatingSystem.IsWindows() && context.ExecutionContext.IsRunMode)
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)
39if (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)
14if (builder.ExecutionContext.IsRunMode && builder.Environment.IsDevelopment())
TestShop.AppHost (1)
Program.cs (1)
34if (builder.Environment.IsDevelopment() && builder.ExecutionContext.IsRunMode)