Message Method
Message(Action<IHReliableTopic<T>, ReliableTopicMessageEventArgs<T>>)
Adds the handler which runs when a message is received.
Declaration
public ReliableTopicEventHandlers<T> Message(Action<IHReliableTopic<T>, ReliableTopicMessageEventArgs<T>> handler)
Parameters
Action<IHReliableTopic<T>, ReliableTopicMessageEventArgs<T>> | handler | The handler. |
Returns
ReliableTopicEventHandlers<T> | The handlers. |
Message(Func<IHReliableTopic<T>, ReliableTopicMessageEventArgs<T>, ValueTask>)
Adds the handler which runs when a message is received.
Declaration
public ReliableTopicEventHandlers<T> Message(Func<IHReliableTopic<T>, ReliableTopicMessageEventArgs<T>, ValueTask> handler)
Parameters
Func<IHReliableTopic<T>, ReliableTopicMessageEventArgs<T>, ValueTask> | handler | The handler. |
Returns
ReliableTopicEventHandlers<T> | The handlers. |