Class EventBus
Assembly: Glitch9.dll
Syntax
public sealed class EventBus : MessageBusBase<IEvent>, IEventBus
Constructors
|
Edit this page
View Source
EventBus(string)
Declaration
public EventBus(string debugName = null)
Parameters
| Type |
Name |
Description |
| string |
debugName |
|
Methods
|
Edit this page
View Source
Register<T>(IEventHandler<T>)
Declaration
public IDisposable Register<T>(IEventHandler<T> handler) where T : IEvent
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Unregister<T>(IEventHandler<T>)
Declaration
public void Unregister<T>(IEventHandler<T> handler) where T : IEvent
Parameters
Type Parameters
Implements
Extension Methods