DistributedApplicationExecutionContext
Class net10.0
Exposes the global contextual information for this invocation of the AppHost.
namespace Aspire.Hosting;
public class DistributedApplicationExecutionContext{ // ...} 8 members
Constructors3
Section titled ConstructorsDistributedApplicationExecutionContext(DistributedApplicationOperation) Constructs a
DistributedApplicationExecutionContext without a callback to retrieve the IServiceProvider. DistributedApplicationExecutionContext(DistributedApplicationOperation, string) Constructs a
DistributedApplicationExecutionContext without a callback to retrieve the IServiceProvider. DistributedApplicationExecutionContext(DistributedApplicationExecutionContextOptions) Constructs a
DistributedApplicationExecutionContext with a callback to retrieve the IServiceProvider. Properties5
Section titled PropertiesIsPublishModegetbool Returns true if the current operation is publishing.
IsRunModegetbool Returns true if the current operation is running.
Operationget The operation currently being performed by the AppHost.
PublisherNameget; setstring The name of the publisher that is being used if
DistributedApplicationExecutionContext.Operation is set to DistributedApplicationOperation.Publish. ServiceProvidergetIServiceProvider The
IServiceProvider for the AppHost.