80 references to IsRunMode
Aspire.Hosting (32)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (1)
66if (executionContext.IsRunMode && trustDevCert)
ApplicationModel\HostUrl.cs (2)
44if (context.ExecutionContext?.IsRunMode == true) 103if (context.ExecutionContext?.IsRunMode == true)
ContainerRegistryResourceBuilderExtensions.cs (2)
55var resourceBuilder = builder.ExecutionContext.IsRunMode 107var resourceBuilder = builder.ExecutionContext.IsRunMode
ContainerResourceBuilderExtensions.cs (1)
1311if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Dashboard\DashboardEventHandlers.cs (2)
66Debug.Assert(executionContext.IsRunMode, "Dashboard resource should only be added in run mode"); 849if (execContext.IsRunMode)
DistributedApplication.cs (2)
433if (executionContext.IsPublishMode || executionContext.IsRunMode) 486if (executionContext.IsPublishMode || executionContext.IsRunMode)
DistributedApplicationBuilder.cs (3)
384if (ExecutionContext.IsRunMode && !isExecMode) 471if (ExecutionContext.IsRunMode) 602if (ExecutionContext.IsRunMode)
DistributedApplicationLifecycle.cs (2)
24if (executionContext.IsRunMode) 41if (executionContext.IsRunMode)
IDistributedApplicationBuilder.cs (2)
94/// <see cref="DistributedApplicationExecutionContext.IsPublishMode"/> and <see cref="DistributedApplicationExecutionContext.IsRunMode"/> 100/// An example of using the <see cref="DistributedApplicationExecutionContext.IsRunMode"/> property on the <see cref="IDistributedApplicationBuilder"/> via
Orchestrator\ParameterProcessor.cs (4)
147if (executionContext.IsRunMode && interactionService.IsAvailable && !parameterResource.Annotations.OfType<ResourceCommandAnnotation>().Any(a => a.Name == KnownResourceCommands.SetParameterCommand)) 435if (executionContext.IsRunMode && saveToDeploymentState) 459var showNotification = executionContext.IsRunMode; 460var showSaveToSecrets = executionContext.IsRunMode;
ParameterResourceBuilderExtensions.cs (6)
131/// <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c> 143if (persist && builder.ExecutionContext.IsRunMode) 306/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 336/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 354if (builder.ExecutionContext.IsRunMode) 366/// 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) 995var host = builder.ApplicationBuilder.ExecutionContext.IsRunMode &&
ResourceBuilderExtensions.cs (1)
2998if (!builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Utils\DockerfileHelper.cs (1)
39if (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)
37if (builder.ExecutionContext.IsRunMode)
Provisioning\Provisioners\AzureProvisioner.cs (1)
282if (executionContext.IsRunMode)
Provisioning\Provisioners\BicepProvisioner.cs (1)
224if (context.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppExtensions.cs (1)
336var appEnvBuilder = builder.ExecutionContext.IsRunMode
AzureContainerAppsInfrastructure.cs (1)
78if (!executionContext.IsRunMode)
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryExtensions.cs (1)
59if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
409if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
190if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresExtensions.cs (2)
301if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 442if (distributedApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Redis (2)
AzureManagedRedisExtensions.cs (1)
134if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
AzureRedisExtensions.cs (1)
207if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (1)
319if (distributedApplicationBuilder.ExecutionContext.IsRunMode)
AzureSqlServerResource.cs (1)
197var isRunMode = roleAssignmentContext.ExecutionContext.IsRunMode;
Aspire.Hosting.Azure.Tests (1)
AzureResourcePreparerTests.cs (1)
262Assert.False(capturedExecutionContext.IsRunMode);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentExtensions.cs (1)
49if (builder.ExecutionContext.IsRunMode)
DockerComposeInfrastructure.cs (1)
23if (executionContext.IsRunMode)
Aspire.Hosting.JavaScript (4)
JavaScriptHostingExtensions.cs (4)
261if (builder.ExecutionContext.IsRunMode) 463if (builder.ExecutionContext.IsRunMode) 631if (builder.ExecutionContext.IsRunMode) 954if (resource.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
137var bootstrapServers = context.ExecutionContext.IsRunMode 215var advertisedListeners = context.ExecutionContext.IsRunMode
Aspire.Hosting.Keycloak (2)
KeycloakResourceBuilderExtensions.cs (2)
107if (builder.ExecutionContext.IsRunMode) 139if (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)
411if (context.ExecutionContext.IsRunMode && config.GetValue<bool>("CODESPACES", false))
Aspire.Hosting.Python (4)
PythonAppResourceBuilderExtensions.cs (4)
314if (builder.ExecutionContext.IsRunMode) 412if (OperatingSystem.IsWindows() && context.ExecutionContext.IsRunMode) 509if (builder.ExecutionContext.IsRunMode) 1322if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
260if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Redis (3)
RedisBuilderExtensions.cs (3)
130if (context.ExecutionContext.IsRunMode) 159if (ctx.ExecutionContext.IsRunMode) 176if (builder.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 (2)
YarpResourceExtensions.cs (2)
56if (builder.ExecutionContext.IsRunMode) 96if (builder.ExecutionContext.IsRunMode)
TestShop.AppHost (1)
AppHost.cs (1)
34if (builder.Environment.IsDevelopment() && builder.ExecutionContext.IsRunMode)