public SendAsyncResult(ServiceBusMessageBus that, string eventKey, object value, string clientId, AsyncCallback callback, object state) : base(callback, state) { this.that = that; this.eventKey = eventKey; this.value = value; this.clientId = clientId; this.Run(); }
public GetMessagesFromCacheAsyncResult( ServiceBusMessageBus that, IEnumerable <string> keys, CompositeCursor compositeCursor, int maxMessages, CancellationToken cancellationToken, AsyncCallback callback, object state) : base(callback, state) { this.that = that; this.keys = keys; this.compositeCursor = compositeCursor; this.maxMessages = maxMessages; this.cancellationToken = cancellationToken; this.mad = new MessageAvailableDispatcher(this.MessageAvailable, that.caches, keys, cancellationToken); this.cancellationToken.Register(Cancel); }