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; }
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); }