Interface IEventBus
Assembly: Glitch9.dll
Syntax
public interface IEventBus
Methods
|
Edit this page
View Source
Dispatch<T>(T)
Declaration
void Dispatch<T>(T e) where T : IEvent
Parameters
| Type |
Name |
Description |
| T |
e |
|
Type Parameters
|
Edit this page
View Source
Register<T>(IEventHandler<T>)
Declaration
IDisposable Register<T>(IEventHandler<T> handler) where T : IEvent
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Register<T>(Action<T>)
Declaration
IDisposable Register<T>(Action<T> handler) where T : IEvent
Parameters
| Type |
Name |
Description |
| Action<T> |
handler |
|
Returns
Type Parameters
|
Edit this page
View Source
Unregister<T>(IEventHandler<T>)
Declaration
void Unregister<T>(IEventHandler<T> handler) where T : IEvent
Parameters
Type Parameters
|
Edit this page
View Source
Unregister<T>(Action<T>)
Declaration
void Unregister<T>(Action<T> handler) where T : IEvent
Parameters
| Type |
Name |
Description |
| Action<T> |
handler |
|
Type Parameters
Extension Methods