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

RetryTimer() public méthode

public RetryTimer ( System.Action callback, int>.Func timerCalc ) : System
callback System.Action
timerCalc int>.Func
Résultat System
    public RetryTimer(Action callback, Func<int, int> timerCalc)
    {
      _callback = callback;
      _timerCalc = timerCalc;
      _timer = new Timer()
      {
        AutoReset = false
      };
      _timer.Elapsed += OnElapsed;

      _numTries = 0;
    }