Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

DistributedApplicationExecutionContextOptions Properties

ClassProperties5 members
Configuration options and references that need to be exposed to the DistributedApplicationExecutionContext.
The operation currently being performed by the AppHost.
public DistributedApplicationOperation Operation { get; }
PublisherNameSection titled PublisherNamenullablestring?
The name of the publisher if running in publish mode.
public string? PublisherName { get; }
Describes how the AppHost is being run. Only meaningful when DistributedApplicationExecutionContextOptions.Operation is DistributedApplicationOperation.Run; for any other operation the execution context reports defaults regardless of what is set here.
public RunConfiguration RunConfiguration { get; init; }
ServiceProviderSection titled ServiceProvidernullableIServiceProvider?
The IServiceProvider for the AppHost.
public IServiceProvider? ServiceProvider { get; set; }
ServicesSection titled ServicesnullableIServiceProvider?
The IServiceProvider for the AppHost.
public IServiceProvider? Services { get; set; }