public CreateReceiverAsyncResult(EventHubConsumerGroup owner, string partitionId, string startingOffset, DateTime?startingDateTime, long?epoch, bool offsetInclusive, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state)
 {
     this.owner            = owner;
     this.partitionId      = partitionId;
     this.startingOffset   = startingOffset;
     this.startingDateTime = startingDateTime;
     this.epoch            = epoch;
     this.offsetInclusive  = offsetInclusive;
 }
Exemplo n.º 2
0
        public EventHubConsumerGroup GetConsumerGroup(string groupName)
        {
            base.ThrowIfDisposed();
            if (string.IsNullOrWhiteSpace(groupName))
            {
                throw Fx.Exception.ArgumentNullOrWhiteSpace("groupName");
            }
            EventHubConsumerGroup eventHubConsumerGroup = new EventHubConsumerGroup(this.MessagingFactory, this.Path, groupName, this.PrefetchCount);

            this.RegisterMessageClientEntity(eventHubConsumerGroup);
            return(eventHubConsumerGroup);
        }
 public CreateReceiverAsyncResult(EventHubConsumerGroup owner, string partitionId, string startingOffset, DateTime?startingDateTime, long?epoch, TimeSpan timeout, AsyncCallback callback, object state) : this(owner, partitionId, startingOffset, startingDateTime, epoch, false, timeout, callback, state)
 {
 }
 public CloseOrAbortAsyncResult(EventHubConsumerGroup owner, bool shouldAbort, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state)
 {
     this.owner       = owner;
     this.shouldAbort = shouldAbort;
 }