Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DistributedApplication

Handle
📦 Aspire.Hosting v17.0.0

Represents a distributed application that implements the IHost and IAsyncDisposable interfaces.

type DistributedApplication interface{}

Methods

methodRun
Runs the distributed application
Run(options ...*RunOptions) error
options...*RunOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*RunOptions argument.

CancellationToken*CancellationTokenThe token to trigger shutdown.
error

The Task that represents the asynchronous operation.

Returns error.