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

ShouldPause() public method

public ShouldPause ( ) : bool
return bool
        public bool ShouldPause()
        {
            return NextKnownSequence == 0;
        }

Usage Example

Example #1
0
        public void should_pause_if_empty_with_no_known_next()
        {
            var page = new EventPage(0, 100, new List<IEvent>())
            {
                NextKnownSequence = 0,
                LastKnownSequence = 1000
            };

            page.ShouldPause().ShouldBeTrue();

        }
All Usage Examples Of Marten.Events.Projections.Async.EventPage::ShouldPause