Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DistributedApplication.Run

Method
📦 Aspire.Hosting v17.0.0
type DistributedApplication interface {
// ... omitted for brevity
Run(options ...*RunOptions) error
}

Signature

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.

Defined on

This method is defined on the following type: