DistributedApplicationExecutionContext Properties
ClassProperties7 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; } The name of the publisher that is being used if
DistributedApplicationExecutionContext.Operation is set to DistributedApplicationOperation.Publish. public string PublisherName { get; set; } Describes how the AppHost is being run. Only meaningful when
DistributedApplicationExecutionContext.Operation is DistributedApplicationOperation.Run; otherwise every aspect holds its default value. public RunConfiguration RunConfiguration { get; } The
IServiceProvider for the AppHost. public IServiceProvider ServiceProvider { get; }Exceptions
InvalidOperationExceptionThrown when the IServiceProvider is not available. The
IServiceProvider for the AppHost. public IServiceProvider Services { get; }Exceptions
InvalidOperationExceptionThrown when the IServiceProvider is not available.