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; }
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; }
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; }
ServiceProviderSection titled ServiceProviderIServiceProvider
The IServiceProvider for the AppHost.
public IServiceProvider ServiceProvider { get; }
InvalidOperationExceptionThrown when the IServiceProvider is not available.
ServicesSection titled ServicesIServiceProvider
The IServiceProvider for the AppHost.
public IServiceProvider Services { get; }
InvalidOperationExceptionThrown when the IServiceProvider is not available.