예제 #1
0
 protected ChainedAsyncResult(TimeSpan timeout, AsyncCallback callback, object state)
     : base(callback, state)
 {
     this.timeoutHelper = new TimeoutHelper(timeout);
 }
예제 #2
0
 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);
 }
예제 #3
0
 protected ChainedAsyncResult(TimeSpan timeout, AsyncCallback callback, object state)
     : base(callback, state)
 {
     _timeoutHelper = new TimeoutHelper(timeout);
 }
예제 #4
0
 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);
 }
예제 #5
0
 public void SetTimer(TimerCallback callback, Object state)
 {
     Timer timer = new Timer(callback, state, TimeoutHelper.ToMilliseconds(this.RemainingTime()), Timeout.Infinite);
 }