WebApplication.RunAsync(String) 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.
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.