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; }
/// <inheritdoc /> public SequentialData(string dequeueId, IList <T> dequeueItems, RedisSequentialWorkQueue <T> .DequeueManager dequeueManager) { this.DequeueId = dequeueId; this.DequeueItems = dequeueItems; this._dequeueManager = dequeueManager; }