34 references to IsRunMode
Aspire.Hosting (15)
DistributedApplication.cs (2)
364if (executionContext.IsPublishMode || executionContext.IsRunMode) 410if (executionContext.IsPublishMode || executionContext.IsRunMode)
DistributedApplicationBuilder.cs (2)
269if (ExecutionContext.IsRunMode) 456if (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)
126/// <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c> 138if (persist && builder.ExecutionContext.IsRunMode && builder.AppHostAssembly is not null) 243/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 273/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 291if (builder.ExecutionContext.IsRunMode && builder.AppHostAssembly is not null) 303/// 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()) 411if (builder.ApplicationBuilder.ExecutionContext.IsRunMode) 839var host = builder.ApplicationBuilder.ExecutionContext.IsRunMode &&
Aspire.Hosting.Azure (2)
AzureEnvironmentResourceExtensions.cs (1)
34if (builder.ExecutionContext.IsRunMode)
AzureUserAssignedIdentityExtensions.cs (1)
37if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.ApplicationInsights (1)
AzureApplicationInsightsExtensions.cs (1)
78else if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryExtensions.cs (1)
58if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
351if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
298if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
204if (builder.ApplicationBuilder.ExecutionContext.IsRunMode)
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (1)
314if (distributedApplicationBuilder.ExecutionContext.IsRunMode)
AzureSqlServerResource.cs (1)
133var isRunMode = roleAssignmentContext.ExecutionContext.IsRunMode;
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentExtensions.cs (1)
31if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (2)
139var bootstrapServers = context.ExecutionContext.IsRunMode 217var advertisedListeners = context.ExecutionContext.IsRunMode
Aspire.Hosting.Keycloak (1)
KeycloakResourceBuilderExtensions.cs (1)
75if (builder.ExecutionContext.IsRunMode)
Aspire.Hosting.Kubernetes (1)
KubernetesEnvironmentExtensions.cs (1)
30if (builder.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 (3)
OperationModesTests.cs (3)
39Assert.True(context.IsRunMode); 68Assert.True(context.IsRunMode); 97Assert.True(context.IsRunMode);