Interface IMessageCallback
Event callback for received messages and events.
Namespace: TehGM.Wolfringo.Utilities.Internal
Assembly: Wolfringo.Core.dll
Syntax
public interface IMessageCallback
Remarks
This interface is designed to allow invoking callback conditionally. If TryInvoke(IWolfMessage) returns false, it doesn't meant invoking failed - it means that callback determined it should not invoke for the provided message.
Properties
| Improve this Doc View SourceCallbackInfo
Method to invoke.
Declaration
MethodInfo CallbackInfo { get; }
Property Value
Type | Description |
---|---|
MethodInfo |
Methods
| Improve this Doc View SourceTryInvoke(IWolfMessage)
Attempts to invoke the callback.
Declaration
bool TryInvoke(IWolfMessage message)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | message | Message to attempt invoking the callback for. |
Returns
Type | Description |
---|---|
Boolean | True if callback was invoked; otherwise false. |