public DequeueManager(PooledRedisClientManager clientManager, RedisSequentialWorkQueue <T> workQueue, string workItemId,
                       string dequeueLockKey, int numberOfDequeuedItems, int dequeueLockTimeout = 300)
 {
     this.WorkQueue             = workQueue;
     this.WorkItemId            = workItemId;
     this.ClientManager         = clientManager;
     this.NumberOfDequeuedItems = numberOfDequeuedItems;
     this._myLock             = new DistributedLock();
     this._dequeueLockKey     = dequeueLockKey;
     this._dequeueLockTimeout = dequeueLockTimeout;
 }
예제 #2
0
 /// <inheritdoc />
 public SequentialData(string dequeueId, IList <T> dequeueItems, RedisSequentialWorkQueue <T> .DequeueManager dequeueManager)
 {
     this.DequeueId       = dequeueId;
     this.DequeueItems    = dequeueItems;
     this._dequeueManager = dequeueManager;
 }