Skip to content
DocsTry Aspire
DocsTry

DistributedApplicationExecutionContext

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

Properties

propertyisPublishModebooleanget
Returns true if the current operation is publishing.
propertyisRunModebooleanget
Returns true if the current operation is running.
propertyoperationDistributedApplicationOperationget
The operation currently being performed by the AppHost.
propertypublisherNamestringget · set
The name of the publisher that is being used if `Operation` is set to `Publish`.
propertyserviceProviderIServiceProviderget
The `IServiceProvider` for the AppHost.