IScriptLifecycle
Interface
Members
2
InitializeAsync
method
Runs once after the script is loaded and before its first trigger handler fires.ValueTask InitializeAsync(IScriptContext context, CancellationToken cancellationToken = default)ShutdownAsync
method
Runs once when the script is unloaded. Shares the host's bounded shutdown budget.ValueTask ShutdownAsync(CancellationToken cancellationToken = default)
