Share via


DistributedApplicationExecutionContext Constructors

Definition

Overloads

DistributedApplicationExecutionContext(DistributedApplicationExecutionContextOptions)

Constructs a DistributedApplicationExecutionContext with a callback to retrieve the IServiceProvider.

DistributedApplicationExecutionContext(DistributedApplicationOperation)

Constructs a DistributedApplicationExecutionContext without a callback to retrieve the IServiceProvider.

DistributedApplicationExecutionContext(DistributedApplicationExecutionContextOptions)

Source:
DistributedApplicationExecutionContext.cs

Constructs a DistributedApplicationExecutionContext with a callback to retrieve the IServiceProvider.

public DistributedApplicationExecutionContext (Aspire.Hosting.DistributedApplicationExecutionContextOptions options);
new Aspire.Hosting.DistributedApplicationExecutionContext : Aspire.Hosting.DistributedApplicationExecutionContextOptions -> Aspire.Hosting.DistributedApplicationExecutionContext
Public Sub New (options As DistributedApplicationExecutionContextOptions)

Parameters

Applies to

DistributedApplicationExecutionContext(DistributedApplicationOperation)

Source:
DistributedApplicationExecutionContext.cs

Constructs a DistributedApplicationExecutionContext without a callback to retrieve the IServiceProvider.

public DistributedApplicationExecutionContext (Aspire.Hosting.DistributedApplicationOperation operation);
new Aspire.Hosting.DistributedApplicationExecutionContext : Aspire.Hosting.DistributedApplicationOperation -> Aspire.Hosting.DistributedApplicationExecutionContext
Public Sub New (operation As DistributedApplicationOperation)

Parameters

operation
DistributedApplicationOperation

The operation being performed in this invocation of the AppHost.

Remarks

This constructor is used for internal testing purposes.

Applies to