WebApplication.RunAsync(String) Method

Definition

Runs an application and returns a Task that only completes when the token is triggered or shutdown is triggered.

public System.Threading.Tasks.Task RunAsync (string? url = default);
member this.RunAsync : string -> System.Threading.Tasks.Task
Public Function RunAsync (Optional url As String = Nothing) As Task

Parameters

url
String

The URL to listen to if the server hasn't been configured directly.

Returns

A Task that represents the entire runtime of the WebApplication from startup to shutdown.

Applies to