Phoenix.RetryTimer.RetryTimer C# (CSharp) 메소드

RetryTimer() 공개 메소드

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

      _numTries = 0;
    }