Terminated Method
Terminated(Action<IHReliableTopic<T>, ReliableTopicTerminatedEventArgs>)
Sets the handler which runs after the subscription is terminated and no further event will be raised.
Declaration
public ReliableTopicEventHandlers<T> Terminated(Action<IHReliableTopic<T>, ReliableTopicTerminatedEventArgs> handler)
Parameters
Action<IHReliableTopic<T>, ReliableTopicTerminatedEventArgs> | handler | The handler. |
Returns
ReliableTopicEventHandlers<T> |
Remarks
The Terminated event is raised when the subscription terminates, either because of a non-canceled exception Exception(Action<IHReliableTopic<T>, ReliableTopicExceptionEventArgs>), or when anything goes wrong with the underlying buffer (overload, loss...), or when it is actively terminated by e.g. disposing the reliable topic instance.
Terminated(Func<IHReliableTopic<T>, ReliableTopicTerminatedEventArgs, ValueTask>)
Sets the handler which runs after the subscription is terminated and no further event will be raised.
Declaration
public ReliableTopicEventHandlers<T> Terminated(Func<IHReliableTopic<T>, ReliableTopicTerminatedEventArgs, ValueTask> handler)
Parameters
Func<IHReliableTopic<T>, ReliableTopicTerminatedEventArgs, ValueTask> | handler | The handler. |
Returns
ReliableTopicEventHandlers<T> |
Remarks
The Terminated event is raised when the subscription terminates, either because of a non-canceled exception Exception(Action<IHReliableTopic<T>, ReliableTopicExceptionEventArgs>), or when anything goes wrong with the underlying buffer (overload, loss...), or when it is actively terminated by e.g. disposing the reliable topic instance.