SubscribeAsync Method
SubscribeAsync(Action<ReliableTopicEventHandlers<T>>, ReliableTopicEventHandlerOptions, object)
Subscribes to this reliable topic.
Declaration
Task<Guid> SubscribeAsync(Action<ReliableTopicEventHandlers<T>> events, ReliableTopicEventHandlerOptions handlerOptions = null, object state = null)
Parameters
| Action<ReliableTopicEventHandlers<T>> | events | Set action to be executed on the received message. |
| ReliableTopicEventHandlerOptions | handlerOptions | Options for ReliableTopicEventHandlers<T> |
| object | state | A state object. |
Returns
| Task<Guid> |
Remarks
Each subscription has its own thread to process messages.