C# Class Examples.ClientReconnection.MyReconnectionStrategy

This is a custom reconnection strategy that will try to reconnect to the server up to 3 times and then abort.
Inheritance: IReconnectionStrategy
Mostra file Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
PerformReconnection ( IReconnectionAttempt reconnectionAttempt ) : System.Threading.Tasks.Task

Here we put our actual reconnection logic. The async keyword should always be added since it makes things easier for a void return type.

Method Details

PerformReconnection() public method

Here we put our actual reconnection logic. The async keyword should always be added since it makes things easier for a void return type.
public PerformReconnection ( IReconnectionAttempt reconnectionAttempt ) : System.Threading.Tasks.Task
reconnectionAttempt IReconnectionAttempt The reconnection attempt wil be given by the session.
return System.Threading.Tasks.Task