Compartir a través de


IServer.StartAsync<TContext> Método

Definición

Inicie el servidor con una aplicación.

public:
generic <typename TContext>
 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
Public Function StartAsync(Of TContext) (application As IHttpApplication(Of TContext), cancellationToken As CancellationToken) As Task

Parámetros de tipo

TContext

Contexto asociado a la aplicación.

Parámetros

cancellationToken
CancellationToken

Indica si se debe anular el inicio del servidor.

Devoluciones

Se aplica a