Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DistributedApplicationExecutionContext

Handle
📦 Aspire.Hosting v17.0.0

Exposes the global contextual information for this invocation of the AppHost.

type DistributedApplicationExecutionContext interface{}

Properties

propertyIsPublishModeboolget
Returns true if the current operation is publishing.
IsPublishMode() (bool, error)
propertyIsRunModeboolget
Returns true if the current operation is running.
IsRunMode() (bool, error)
propertyOperationDistributedApplicationOperationget
The operation currently being performed by the AppHost.
Operation() (DistributedApplicationOperation, error)
propertyPublisherNamestringget · set
The name of the publisher that is being used if Operation is set to Publish.
PublisherName() (string, error)
SetPublisherName(value string) DistributedApplicationExecutionContext
propertyRunConfiguration*RunConfigurationget
Describes how the AppHost is being run. Only meaningful when Operation is Run; otherwise every aspect holds its default value.
RunConfiguration() (*RunConfiguration, error)
propertyServiceProviderServiceProviderget
The IServiceProvider for the AppHost.
ServiceProvider() ServiceProvider
propertyServicesServiceProviderget
The IServiceProvider for the AppHost.
Services() ServiceProvider