IServer.StartAsync(IHttpApplication<TContext>, CancellationToken) IServer.StartAsync(IHttpApplication<TContext>, CancellationToken) Method

Definition

Start the server with an application.

public System.Threading.Tasks.Task StartAsync<TContext> (Microsoft.AspNetCore.Hosting.Server.IHttpApplication<TContext> application, System.Threading.CancellationToken cancellationToken);
abstract member StartAsync : Microsoft.AspNetCore.Hosting.Server.IHttpApplication<'Context> * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Type Parameters

TContext

The context associated with the application.

Parameters

cancellationToken
CancellationToken CancellationToken

Indicates if the server startup should be aborted.

Returns

Applies to