Skip to content
Docs Try Aspire

DistributedApplicationExecutionContext Properties

Class Properties 5 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; }
PublisherName Section titled PublisherName string
The name of the publisher that is being used if DistributedApplicationExecutionContext.Operation is set to DistributedApplicationOperation.Publish.
public string PublisherName { get; set; }
ServiceProvider Section titled ServiceProvider IServiceProvider
The IServiceProvider for the AppHost.
public IServiceProvider ServiceProvider { get; }
InvalidOperationException Thrown when the IServiceProvider is not available.