Interface IReconnectionStrategy
- Assembly
- Diffusion.Client.dll
A reconnection strategy that gets applied after the connection failure notification.
public interface IReconnectionStrategy
Methods
PerformReconnection(IReconnectionAttempt)
Performs reconnection by supplying a IReconnectionAttempt interface to the strategy.
Task PerformReconnection(IReconnectionAttempt reconnectionAttempt)
Parameters
reconnectionAttemptIReconnectionAttemptThe interface that is able to start or abort the reconnection attempt.
Returns
- Task
A
System.Threading.Tasks.Taskthat holds the current status of the asynchronous operation.
Remarks
The strategy must either start or abort the attempt. It may do so after the returned task completes, for example from a timer; if it does neither before the reconnection timeout, the session closes. If this method throws before the attempt is started or aborted, the session closes. Since 6.13, so it does when the returned task faults or is cancelled before then.