Compartilhar via


KestrelServer.StartAsync<TContext> Método

Definição

Inicie o servidor com um aplicativo.

public:
generic <typename TContext>
 virtual System::Threading::Tasks::Task ^ StartAsync(Microsoft::AspNetCore::Hosting::Server::IHttpApplication<TContext> ^ application, System::Threading::CancellationToken cancellationToken);
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
override this.StartAsync : Microsoft.AspNetCore.Hosting.Server.IHttpApplication<'Context> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync(Of TContext) (application As IHttpApplication(Of TContext), cancellationToken As CancellationToken) As Task

Parâmetros de tipo

TContext

O contexto associado ao aplicativo.

Parâmetros

cancellationToken
CancellationToken

Indica se a inicialização do servidor deve ser anulada.

Retornos

Implementações

Aplica-se a