24 instantiations of DistributedApplicationExecutionContext
Aspire.Hosting (2)
ApplicationModel\ResourceExtensions.cs (1)
193var executionContext = new DistributedApplicationExecutionContext(applicationOperation);
DistributedApplicationBuilder.cs (1)
173ExecutionContext = new DistributedApplicationExecutionContext(_executionContextOptions);
Aspire.Hosting.Tests (22)
Dashboard\DashboardLifecycleHookTests.cs (1)
119new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run),
Dashboard\TransportOptionsValidatorTests.cs (16)
16var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 36var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish); 55var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 73var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 88var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 109var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 128var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 148var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 170var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 192var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 217var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 242var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 264var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 286var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 302var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 318var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
Dcp\ApplicationExecutorTests.cs (1)
1081new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run)
Utils\EnvironmentVariableEvaluator.cs (2)
19{ } => new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(applicationOperation) 23_ => new DistributedApplicationExecutionContext(applicationOperation)
Utils\ManifestUtils.cs (2)
26var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish); 43var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish);
61 references to DistributedApplicationExecutionContext
Aspire.Hosting (31)
ApplicationModel\EnvironmentCallbackContext.cs (2)
14public class EnvironmentCallbackContext(DistributedApplicationExecutionContext executionContext, Dictionary<string, object>? environmentVariables = null, CancellationToken cancellationToken = default) 34public DistributedApplicationExecutionContext ExecutionContext { get; } = executionContext ?? throw new ArgumentNullException(nameof(executionContext));
ApplicationModel\ResourceExtensions.cs (1)
193var executionContext = new DistributedApplicationExecutionContext(applicationOperation);
Dashboard\DashboardLifecycleHook.cs (1)
29DistributedApplicationExecutionContext executionContext,
Dashboard\DashboardServiceHost.cs (1)
53DistributedApplicationExecutionContext executionContext,
Dashboard\TransportOptionsValidator.cs (1)
10internal class TransportOptionsValidator(IConfiguration configuration, DistributedApplicationExecutionContext executionContext, DistributedApplicationOptions distributedApplicationOptions) : IValidateOptions<TransportOptions>
Dcp\ApplicationExecutor.cs (2)
77DistributedApplicationExecutionContext executionContext, 103private readonly DistributedApplicationExecutionContext _executionContext = executionContext;
Dcp\DcpHostService.cs (2)
26private readonly DistributedApplicationExecutionContext _executionContext; 45DistributedApplicationExecutionContext executionContext,
DistributedApplication.cs (2)
305/// in refer to <see cref="DistributedApplicationExecutionContext" />. 334/// in refer to <see cref="DistributedApplicationExecutionContext" />.
DistributedApplicationBuilder.cs (1)
74public DistributedApplicationExecutionContext ExecutionContext { get; }
DistributedApplicationExecutionContext.cs (3)
12/// Constructs a <see cref="DistributedApplicationExecutionContext" /> without a callback to retrieve the <see cref="IServiceProvider" />. 26/// Constructs a <see cref="DistributedApplicationExecutionContext" /> with a callback to retrieve the <see cref="IServiceProvider" />. 28/// <param name="options">Options for <see cref="DistributedApplicationExecutionContext"/>.</param>
DistributedApplicationExecutionContextOptions.cs (1)
7/// Configuration options and references that need to be exposed to the <see cref="DistributedApplicationExecutionContext"/>.
DistributedApplicationLifecycle.cs (1)
14DistributedApplicationExecutionContext executionContext) : IHostedLifecycleService
DistributedApplicationRunner.cs (1)
11internal sealed class DistributedApplicationRunner(DistributedApplicationExecutionContext executionContext, DistributedApplicationModel model, IServiceProvider serviceProvider) : BackgroundService
IDistributedApplicationBuilder.cs (5)
86/// the <see cref="DistributedApplicationExecutionContext" /> provides is the 87/// <see cref="DistributedApplicationExecutionContext.IsPublishMode"/> and <see cref="DistributedApplicationExecutionContext.IsRunMode"/> 94/// An example of using the <see cref="DistributedApplicationExecutionContext.IsRunMode"/> property on the <see cref="IDistributedApplicationBuilder"/> via 115public DistributedApplicationExecutionContext ExecutionContext { get; }
ParameterResourceBuilderExtensions.cs (3)
117/// <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c> 279/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>. 309/// The value will be saved to the app host project's user secrets store when <see cref="DistributedApplicationExecutionContext.IsRunMode"/> is <c>true</c>.
Publishing\ManifestPublisher.cs (2)
15DistributedApplicationExecutionContext executionContext) : IDistributedApplicationPublisher 20private readonly DistributedApplicationExecutionContext _executionContext = executionContext;
Publishing\ManifestPublishingContext.cs (2)
18public sealed class ManifestPublishingContext(DistributedApplicationExecutionContext executionContext, string manifestPath, Utf8JsonWriter writer, CancellationToken cancellationToken = default) 23public DistributedApplicationExecutionContext ExecutionContext { get; } = executionContext;
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
32DistributedApplicationExecutionContext executionContext,
Aspire.Hosting.Azure.AppContainers (7)
AzureContainerAppsInfrastructure.cs (7)
25DistributedApplicationExecutionContext executionContext) : IDistributedApplicationLifecycleHook 81public async Task<AzureBicepResource> CreateContainerAppAsync(IResource resource, AzureProvisioningOptions provisioningOptions, DistributedApplicationExecutionContext executionContext, CancellationToken cancellationToken) 93private async Task<ContainerAppContext> ProcessResourceAsync(IResource resource, DistributedApplicationExecutionContext executionContext, CancellationToken cancellationToken) 244public async Task ProcessResourceAsync(DistributedApplicationExecutionContext executionContext, CancellationToken cancellationToken) 452private async Task ProcessArgumentsAsync(DistributedApplicationExecutionContext executionContext, CancellationToken cancellationToken) 474private async Task ProcessEnvironmentAsync(DistributedApplicationExecutionContext executionContext, CancellationToken cancellationToken) 616private async Task<(object, SecretType)> ProcessValueAsync(object value, DistributedApplicationExecutionContext executionContext, CancellationToken cancellationToken, SecretType secretType = SecretType.None, object? parent = null)
Aspire.Hosting.Testing (1)
DistributedApplicationTestingBuilder.cs (1)
170public DistributedApplicationExecutionContext ExecutionContext => innerBuilder.ExecutionContext;
Aspire.Hosting.Tests (21)
Dashboard\TransportOptionsValidatorTests.cs (16)
16var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 36var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish); 55var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 73var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 88var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 109var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 128var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 148var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 170var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 192var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 217var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 242var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 264var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 286var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 302var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run); 318var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
Helpers\JsonDocumentManifestPublisher.cs (1)
16IHostApplicationLifetime lifetime, DistributedApplicationExecutionContext executionContext
Utils\EnvironmentVariableEvaluator.cs (1)
17var executionContext = serviceProvider switch
Utils\ManifestUtils.cs (2)
26var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish); 43var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish);
Utils\TestDistributedApplicationBuilder.cs (1)
130public DistributedApplicationExecutionContext ExecutionContext => _innerBuilder.ExecutionContext;