IHostedService インターフェイス
定義
ホストで管理されるオブジェクトのメソッドを定義します。Defines methods for objects that are managed by the host.
public interface class IHostedService
public interface IHostedService
type IHostedService = interface
Public Interface IHostedService
- 派生
メソッド
StartAsync(CancellationToken) |
アプリケーション ホストでサービスを開始する準備ができたときにトリガーされます。Triggered when the application host is ready to start the service. |
StopAsync(CancellationToken) |
アプリケーション ホストが正常なシャットダウンを実行しているときにトリガーされます。Triggered when the application host is performing a graceful shutdown. |