IDistributedApplicationTestingBuilder.BuildAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Builds and returns a new DistributedApplication instance. This can only be called once.
public System.Threading.Tasks.Task<Aspire.Hosting.DistributedApplication> BuildAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member BuildAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Aspire.Hosting.DistributedApplication>
Public Function BuildAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of DistributedApplication)
Parameters
- cancellationToken
- CancellationToken
Returns
A new DistributedApplication instance.