DotNetWorkQueue.Transport.Redis.Basic.RedisQueueResetHeartBeat.Reset C# (CSharp) Method

Reset() public method

Used to find and reset work items that are out of the heart beat window
public Reset ( CancellationToken cancelToken ) : long
cancelToken System.Threading.CancellationToken The cancel token.
return long
        public long Reset(CancellationToken cancelToken)
        {
            var counter = _commandReset.Handle(new ResetHeartBeatCommand());
            var total = counter;
            while (counter > 0)
            {
                if (cancelToken.IsCancellationRequested)
                    return total;

                counter = _commandReset.Handle(new ResetHeartBeatCommand());
                total = total + counter;
            }
            return total;
        }
    }
RedisQueueResetHeartBeat