79 references to IsRunMode
Aspire.Hosting (31)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (1)
65if (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)
1299if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Dashboard\DashboardEventHandlers.cs (2)
67Debug.Assert(executionContext.IsRunMode, "Dashboard resource should only be added in run mode"); 845if (execContext.IsRunMode)
DistributedApplication.cs (2)
386if (executionContext.IsPublishMode || executionContext.IsRunMode) 438if (executionContext.IsPublishMode || executionContext.IsRunMode)
DistributedApplicationBuilder.cs (3)
378if (ExecutionContext.IsRunMode && !isExecMode) 465if (ExecutionContext.IsRunMode) 596if (ExecutionContext.IsRunMode)
DistributedApplicationLifecycle.cs (2)
24if (executionContext.IsRunMode) 41if (executionContext.IsRunMode)
IDistributedApplicationBuilder.cs (2)
93/// <see cref="DistributedApplicationExecutionContext.IsPublishMode"/> and <see cref="DistributedApplicationExecutionContext.IsRunMode"/> 99/// An example of using the <see cref="DistributedApplicationExecutionContext.IsRunMode"/> property on the <see cref="IDistributedApplicationBuilder"/> via
Orchestrator\ParameterProcessor.cs (3)
229var showNotification = executionContext.IsRunMode; 230var showSaveToSecrets = executionContext.IsRunMode; 323if (executionContext.IsRunMode && showSaveToSecrets && saveParameters?.Value is not null)
ParameterResourceBuilderExtensions.cs (6)
130/// <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c> 142if (persist && builder.ExecutionContext.IsRunMode) 303/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 333/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 351if (builder.ExecutionContext.IsRunMode) 363/// 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)
2969if (!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)
398if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
190if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresExtensions.cs (2)
299if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 403if (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)
48if (builder.ExecutionContext.IsRunMode)
DockerComposeInfrastructure.cs (1)
23if (executionContext.IsRunMode)
Aspire.Hosting.JavaScript (4)
JavaScriptHostingExtensions.cs (4)
260if (builder.ExecutionContext.IsRunMode) 461if (builder.ExecutionContext.IsRunMode) 628if (builder.ExecutionContext.IsRunMode) 868if (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)
358if (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)
128if (context.ExecutionContext.IsRunMode) 157if (ctx.ExecutionContext.IsRunMode) 174if (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) 90if (builder.ExecutionContext.IsRunMode)
TestShop.AppHost (1)
AppHost.cs (1)
34if (builder.Environment.IsDevelopment() && builder.ExecutionContext.IsRunMode)