Skip to content
Docs Try Aspire
Docs Try

DistributedApplicationExecutionContext

Handle
📦 Aspire.Hosting v13.4.0
interface DistributedApplicationExecutionContext {
readonly isPublishMode: boolean;
readonly isRunMode: boolean;
readonly operation: DistributedApplicationOperation;
publisherName: string;
readonly serviceProvider: IServiceProvider;
}

Properties

property isPublishMode boolean get
Returns true if the current operation is publishing.
property isRunMode boolean get
Returns true if the current operation is running.
property operation DistributedApplicationOperation get
The operation currently being performed by the AppHost.
property publisherName string get · set
The name of the publisher that is being used if `Operation` is set to `Publish`.
property serviceProvider IServiceProvider get
The `IServiceProvider` for the AppHost.