Class MessageCallbackDispatcher
Utility holding and invoking message callbacks.
Namespace: TehGM.Wolfringo.Utilities.Internal
Assembly: Wolfringo.Core.dll
Syntax
public class MessageCallbackDispatcher
Methods
| Improve this Doc View SourceAdd(IMessageCallback)
Adds message callback.
Declaration
public void Add(IMessageCallback callback)
Parameters
Type | Name | Description |
---|---|---|
IMessageCallback | callback | Callback to add. |
Invoke(IWolfMessage)
Attempts to invoke all callbacks.
Declaration
public void Invoke(IWolfMessage message)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | message | Message to pass to callbacks. |
Remove(IMessageCallback)
Remove message callback.
Declaration
public void Remove(IMessageCallback callback)
Parameters
Type | Name | Description |
---|---|---|
IMessageCallback | callback | Callback to remove. |