protected override IAsyncResult OnBeginCreateReceiver(TimeSpan timeout, AsyncCallback callback, object state) { string str = EntityNameHelper.FormatSubscriptionPath(base.Path, base.ClientId); AmqpMessageReceiver amqpMessageReceiver = new AmqpMessageReceiver(this.messagingFactory, str, new MessagingEntityType?(MessagingEntityType.VolatileTopicSubscription), base.RetryPolicy, ReceiveMode.ReceiveAndDelete, base.Filter); return(new CompletedAsyncResult <AmqpMessageReceiver>(amqpMessageReceiver, callback, state)); }
public ReceiveMessageAsyncResult(AmqpMessageReceiver parent, bool shouldThrowTimeout, TimeSpan timeout, AsyncCallback callback, object state) : base(parent, shouldThrowTimeout, timeout, callback, state) { base.Start(); }
public ReceiveEventAsyncResult(AmqpMessageReceiver parent, int maxCount, bool shouldThrowTimeout, TimeSpan timeout, AsyncCallback callback, object state) : base(parent, shouldThrowTimeout, timeout, callback, state) { this.maxCount = maxCount; base.Start(); }
protected ReceiveAsyncResult(AmqpMessageReceiver parent, bool shouldThrowTimeout, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state) { this.parent = parent; this.shouldThrowTimeout = shouldThrowTimeout; }
public DisposeMessageAsyncResult(AmqpMessageReceiver parent, IEnumerable <Guid> lockTokens, Outcome outcome, bool batchable, TimeSpan timeout, AsyncCallback callback, object state) : base(parent, outcome, batchable, timeout, callback, state) { this.lockTokens = lockTokens; Fx.AssertIsNotNull(this.lockTokens, "lockToken collection should not be null"); base.Start(); }
public DisposeEventAsyncResult(AmqpMessageReceiver parent, IEnumerable <ArraySegment <byte> > deliveryTags, Outcome outcome, bool batchable, TimeSpan timeout, AsyncCallback callback, object state) : base(parent, outcome, batchable, timeout, callback, state) { this.deliveryTags = deliveryTags; Fx.AssertIsNotNull(this.deliveryTags, "offsets collection should not be null"); base.Start(); }
protected DisposeAsyncResult(AmqpMessageReceiver parent, Outcome outcome, bool batchable, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state) { this.parent = parent; this.outcome = outcome; this.batchable = batchable; }