Exemple #1
0
 public AcceptChannelAsyncResult(ServiceBusInputSessionChannelListener owner, TimeSpan retryTimeSpan, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state)
 {
     this.owner         = owner;
     this.retryTimeSpan = retryTimeSpan;
     this.acceptMessageSessionTimeout = (base.OriginalTimeout == TimeSpan.MaxValue ? this.owner.DefaultReceiveTimeout : timeout);
     this.Channel = null;
 }
Exemple #2
0
 public TryReceiveAsyncResult(ServiceBusInputSessionChannel sessionChannel, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state)
 {
     this.sessionChannel = sessionChannel;
     this.innerTimeout   = TimeoutHelper.Min(timeout, this.sessionChannel.sessionIdleTimeout);
 }