public DeliveryStrategy(InputQueueChannel <ItemType> channel, int quota)
 {
     if (quota <= 0)
     {
         throw Fx.AssertAndThrow("Argument quota must be positive.");
     }
     this.channel = channel;
     this.quota   = quota;
 }
Exemple #2
0
 public OrderedDeliveryStrategy(
     InputQueueChannel <ItemType> channel,
     int quota,
     bool isEnqueueInOrder)
     : base(channel, quota)
 {
     this.isEnqueueInOrder = isEnqueueInOrder;
     items       = new Dictionary <Int64, ItemType>();
     windowStart = 1;
 }
 public PeerMessageQueueAdapter(InputQueueChannel <Message> inputQueueChannel)
 {
     this.inputQueueChannel = inputQueueChannel;
 }
Exemple #4
0
 public UnorderedDeliveryStrategy(InputQueueChannel <ItemType> channel, int quota)
     : base(channel, quota)
 {
 }