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