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
Afficher le fichier Open project: pushtechnology/diffusion-examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System.Threading.Tasks.Task