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.
- Listed in Other Alta assemblies
- Derived types
AnalyticsService,IAnalyticsService,EventBus<T>,IEventBus<T>
Methods
| Member | What 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. |