Skip to main content

IEventSource<T>

An interface in Alta.EventBus.Runtime, Alta.EventBusSystem.

The listen-only side of an event bus: lets code subscribe to T events without being able to send them.

Methods​

MemberWhat it is
void AddListener(Action<T> listener)Subscribes a callback that runs each time a T event is sent.
void RemoveListener(Action<T> listener)Unsubscribes a callback added with AddListener.