DistributedApplication.StartAsync(CancellationToken) Method

Definition

Starts the IHostedService objects configured for the program. The application will run until interrupted or until StopApplication() is called.

C#
public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default);

Parameters

cancellationToken
CancellationToken

Returns

Applies to

Produto Versões
.NET Aspire 8.0.0, 9.0.0, 9.1.0