Table of Contents

Interface IEventListener<TEvent>

Namespace
RisingV.Shared.Events
Assembly
RisingV.Shared.dll

Represents an event that can be published and subscribed to in the event bus system.

public interface IEventListener<in TEvent> where TEvent : IEvent

Type Parameters

TEvent

The type of the event.

Extension Methods

Methods

OnEventAsync(TEvent, CancellationToken)

Handles the event asynchronously.

ValueTask OnEventAsync(TEvent evt, CancellationToken ct = default)

Parameters

evt TEvent

The event to handle.

ct CancellationToken

The cancellation token to observe while handling the event.

Returns

ValueTask

A task that represents the asynchronous operation.