24 instantiations of DistributedApplicationExecutionContext
Aspire.Hosting (2)
ApplicationModel\ResourceExtensions.cs (1)
193
var executionContext = new
DistributedApplicationExecutionContext
(applicationOperation);
DistributedApplicationBuilder.cs (1)
173
ExecutionContext = new
DistributedApplicationExecutionContext
(_executionContextOptions);
Aspire.Hosting.Tests (22)
Dashboard\DashboardLifecycleHookTests.cs (1)
119
new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run),
Dashboard\TransportOptionsValidatorTests.cs (16)
16
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
36
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Publish);
55
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
73
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
88
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
109
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
128
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
148
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
170
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
192
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
217
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
242
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
264
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
286
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
302
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
318
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Run);
Dcp\ApplicationExecutorTests.cs (1)
1081
new
DistributedApplicationExecutionContext
(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run)
Utils\EnvironmentVariableEvaluator.cs (2)
19
{ } => new
DistributedApplicationExecutionContext
(new DistributedApplicationExecutionContextOptions(applicationOperation)
23
_ => new
DistributedApplicationExecutionContext
(applicationOperation)
Utils\ManifestUtils.cs (2)
26
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Publish);
43
var executionContext = new
DistributedApplicationExecutionContext
(DistributedApplicationOperation.Publish);
61 references to DistributedApplicationExecutionContext
Aspire.Hosting (31)
ApplicationModel\EnvironmentCallbackContext.cs (2)
14
public class EnvironmentCallbackContext(
DistributedApplicationExecutionContext
executionContext, Dictionary<string, object>? environmentVariables = null, CancellationToken cancellationToken = default)
34
public
DistributedApplicationExecutionContext
ExecutionContext { get; } = executionContext ?? throw new ArgumentNullException(nameof(executionContext));
ApplicationModel\ResourceExtensions.cs (1)
193
var
executionContext = new DistributedApplicationExecutionContext(applicationOperation);
Dashboard\DashboardLifecycleHook.cs (1)
29
DistributedApplicationExecutionContext
executionContext,
Dashboard\DashboardServiceHost.cs (1)
53
DistributedApplicationExecutionContext
executionContext,
Dashboard\TransportOptionsValidator.cs (1)
10
internal class TransportOptionsValidator(IConfiguration configuration,
DistributedApplicationExecutionContext
executionContext, DistributedApplicationOptions distributedApplicationOptions) : IValidateOptions<TransportOptions>
Dcp\ApplicationExecutor.cs (2)
77
DistributedApplicationExecutionContext
executionContext,
103
private readonly
DistributedApplicationExecutionContext
_executionContext = executionContext;
Dcp\DcpHostService.cs (2)
26
private readonly
DistributedApplicationExecutionContext
_executionContext;
45
DistributedApplicationExecutionContext
executionContext,
DistributedApplication.cs (2)
305
/// in refer to <see cref="
DistributedApplicationExecutionContext
" />.
334
/// in refer to <see cref="
DistributedApplicationExecutionContext
" />.
DistributedApplicationBuilder.cs (1)
74
public
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)
14
DistributedApplicationExecutionContext
executionContext) : IHostedLifecycleService
DistributedApplicationRunner.cs (1)
11
internal 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
115
public
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)
15
DistributedApplicationExecutionContext
executionContext) : IDistributedApplicationPublisher
20
private readonly
DistributedApplicationExecutionContext
_executionContext = executionContext;
Publishing\ManifestPublishingContext.cs (2)
18
public sealed class ManifestPublishingContext(
DistributedApplicationExecutionContext
executionContext, string manifestPath, Utf8JsonWriter writer, CancellationToken cancellationToken = default)
23
public
DistributedApplicationExecutionContext
ExecutionContext { get; } = executionContext;
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
32
DistributedApplicationExecutionContext
executionContext,
Aspire.Hosting.Azure.AppContainers (7)
AzureContainerAppsInfrastructure.cs (7)
25
DistributedApplicationExecutionContext
executionContext) : IDistributedApplicationLifecycleHook
81
public async Task<AzureBicepResource> CreateContainerAppAsync(IResource resource, AzureProvisioningOptions provisioningOptions,
DistributedApplicationExecutionContext
executionContext, CancellationToken cancellationToken)
93
private async Task<ContainerAppContext> ProcessResourceAsync(IResource resource,
DistributedApplicationExecutionContext
executionContext, CancellationToken cancellationToken)
244
public async Task ProcessResourceAsync(
DistributedApplicationExecutionContext
executionContext, CancellationToken cancellationToken)
452
private async Task ProcessArgumentsAsync(
DistributedApplicationExecutionContext
executionContext, CancellationToken cancellationToken)
474
private async Task ProcessEnvironmentAsync(
DistributedApplicationExecutionContext
executionContext, CancellationToken cancellationToken)
616
private 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)
170
public
DistributedApplicationExecutionContext
ExecutionContext => innerBuilder.ExecutionContext;
Aspire.Hosting.Tests (21)
Dashboard\TransportOptionsValidatorTests.cs (16)
16
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
36
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish);
55
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
73
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
88
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
109
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
128
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
148
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
170
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
192
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
217
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
242
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
264
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
286
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
302
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
318
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Run);
Helpers\JsonDocumentManifestPublisher.cs (1)
16
IHostApplicationLifetime lifetime,
DistributedApplicationExecutionContext
executionContext
Utils\EnvironmentVariableEvaluator.cs (1)
17
var
executionContext = serviceProvider switch
Utils\ManifestUtils.cs (2)
26
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish);
43
var
executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.Publish);
Utils\TestDistributedApplicationBuilder.cs (1)
130
public
DistributedApplicationExecutionContext
ExecutionContext => _innerBuilder.ExecutionContext;