Phoenix.RetryTimer.SetTimeout C# (CSharp) Méthode

SetTimeout() public méthode

public SetTimeout ( ) : void
Résultat void
    public void SetTimeout()
    {
      _timer.Stop();
      var wait = _timerCalc(_numTries + 1);
      _timer.Interval = wait;
      _timer.Start();
    }

Usage Example

Exemple #1
0
 //rejoinUntilConnected(){
 //  this.rejoinTimer.setTimeout()
 //  if(this.socket.isConnected()){
 //    this.rejoin()
 //  }
 //}
 public void RejoinUntilConnected()
 {
     _socket.Log("timer", "chan rejoin");
     _rejoinTimer.SetTimeout();
     if (_socket.IsConnected()) //jfis - instead of checking, socket should tell channel
     {
         Rejoin();
     }
 }
All Usage Examples Of Phoenix.RetryTimer::SetTimeout