IHostedService Interface

Definição

Define métodos para objetos gerenciados pelo host.Defines methods for objects that are managed by the host.

public interface class IHostedService
public interface IHostedService
type IHostedService = interface
Public Interface IHostedService
Derivado

Métodos

StartAsync(CancellationToken)

Disparado quando o host de aplicativo está pronto para iniciar o serviço.Triggered when the application host is ready to start the service.

StopAsync(CancellationToken)

Disparado quando o host de aplicativo está executando um desligamento normal.Triggered when the application host is performing a graceful shutdown.

Aplica-se a