Marten.Events.Projections.Async.EventPage.IsCompletelySequential C# (CSharp) Method

IsCompletelySequential() public static method

public static IsCompletelySequential ( IList sequences ) : bool
sequences IList
return bool
        public static bool IsCompletelySequential(IList<long> sequences)
        {
            for (int i = 0; i < sequences.Count - 1; i++)
            {
                if (sequences[i + 1] - sequences[i] != 1) return false;
            }

            return true;
        }