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