Delegate ModifyMessageCallback<TMsg>
Handles an intercepted message and allows the handler to modify the intercepted message by returning a modified or new IMessage instance.
public delegate IMessage? ModifyMessageCallback<TMsg>(TMsg msg) where TMsg : IMessage<TMsg>
Parameters
msgTMsg- Handles an intercepted message and allows the handler to modify the intercepted message by returning a modified or new instance.
Returns
- IMessage
- Handles an intercepted message and allows the handler to modify the intercepted message by returning a modified or new instance.
Type Parameters
TMsgThe type of the message.