Example #1
0
 public WaitForPendingRequestsAsyncResult(TimeSpan timeout, Microsoft.ServiceBus.Channels.RequestChannel requestChannel, Microsoft.ServiceBus.Channels.IRequestBase[] pendingRequests, AsyncCallback callback, object state) : base(callback, state)
 {
     this.requestChannel  = requestChannel;
     this.pendingRequests = pendingRequests;
     this.timeout         = timeout;
     if (this.timeout == TimeSpan.Zero || this.pendingRequests == null)
     {
         this.AbortRequests();
         this.CleanupEvents();
         base.Complete(true);
         return;
     }
     this.waitHandle = ThreadPool.UnsafeRegisterWaitForSingleObject(this.requestChannel.closedEvent, Microsoft.ServiceBus.Channels.RequestChannel.WaitForPendingRequestsAsyncResult.completeWaitCallBack, this, Microsoft.ServiceBus.Common.TimeoutHelper.ToMilliseconds(timeout), true);
 }
Example #2
0
 public void Fault(Microsoft.ServiceBus.Channels.RequestChannel requestChannel)
 {
     this.Cleanup();
 }