protected ChainedAsyncResult(TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state) { this.timeoutHelper = new TimeoutHelper(timeout); }
public ChainedAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, ChainedBeginHandler begin1, ChainedEndHandler end1, ChainedBeginHandler begin2, ChainedEndHandler end2) : base(callback, state) { this.timeoutHelper = new TimeoutHelper(timeout); Begin(begin1, end1, begin2, end2); }
protected ChainedAsyncResult(TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state) { _timeoutHelper = new TimeoutHelper(timeout); }
public ChainedAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, ChainedBeginHandler begin1, ChainedEndHandler end1, ChainedBeginHandler begin2, ChainedEndHandler end2) : base(callback, state) { _timeoutHelper = new TimeoutHelper(timeout); Begin(begin1, end1, begin2, end2); }
public void SetTimer(TimerCallback callback, Object state) { Timer timer = new Timer(callback, state, TimeoutHelper.ToMilliseconds(this.RemainingTime()), Timeout.Infinite); }