Skip to content
DocsTry Aspire
DocsTry

DistributedApplicationExecutionContext Properties

ClassProperties5 members
Exposes the global contextual information for this invocation of the AppHost.
Returns true if the current operation is publishing.
public bool IsPublishMode { get; }
Returns true if the current operation is running.
public bool IsRunMode { get; }
The operation currently being performed by the AppHost.
public DistributedApplicationOperation Operation { get; }
PublisherNameSection titled PublisherNamestring
The name of the publisher that is being used if DistributedApplicationExecutionContext.Operation is set to DistributedApplicationOperation.Publish.
public string PublisherName { get; set; }
ServiceProviderSection titled ServiceProviderIServiceProvider
The IServiceProvider for the AppHost.
public IServiceProvider ServiceProvider { get; }
InvalidOperationExceptionThrown when the IServiceProvider is not available.