Table of Contents

Interface IAsyncEventListener<TEventArgs>

Namespace
Uncreated.Warfare.Events.Models
Assembly
Uncreated.Warfare.dll

Listen for an event in an asynchronous context. Object must be in the IServiceProvider or a IEventListenerProvider.

public interface IAsyncEventListener<in TEventArgs> where TEventArgs : class

Type Parameters

TEventArgs

Methods

HandleEventAsync(TEventArgs, IServiceProvider, CancellationToken)

UniTask HandleEventAsync(TEventArgs e, IServiceProvider serviceProvider, CancellationToken token = default)

Parameters

e TEventArgs
serviceProvider IServiceProvider
token CancellationToken

Returns

UniTask