Table of Contents

Interface IHostedService

Namespace
Uncreated.Warfare.Services
Assembly
Uncreated.Warfare.dll

Runs at module startup and shutdown.

public interface IHostedService

Methods

StartAsync(CancellationToken)

Executes at module startup.

UniTask StartAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

UniTask

StopAsync(CancellationToken)

Executes at module shutdown.

UniTask StopAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

UniTask