Skip to content
DocsTry Aspire
DocsTry

DistributedApplicationExecutionContext

Handle
📦 Aspire.Hosting v13.5.3
interface DistributedApplicationExecutionContext {
readonly isPublishMode: boolean;
readonly isRunMode: boolean;
readonly operation: DistributedApplicationOperation;
publisherName: string;
readonly runConfiguration: RunConfiguration;
readonly serviceProvider: IServiceProvider;
readonly services: 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`.
propertyrunConfigurationRunConfigurationget
Describes how the AppHost is being run. Only meaningful when `Operation` is `Run`; otherwise every aspect holds its default value.
propertyserviceProviderIServiceProviderget
The `IServiceProvider` for the AppHost.
propertyservicesIServiceProviderget
The `IServiceProvider` for the AppHost.