Exemplo n.º 1
0
        public void Init(EventPaging progress)
        {
            EventPaging existing = EventTypePaging.Where(et => et.Type.Equals(progress.Type, StringComparison.OrdinalIgnoreCase)).FirstOrDefault();

            if (existing is null)
            {
                EventTypePaging.Add(progress);
            }
        }
Exemplo n.º 2
0
        public void MarkEventTypeProgress(EventPaging progress)
        {
            EventPaging existing = EventTypePaging.Where(et => et.Type.Equals(progress.Type, StringComparison.OrdinalIgnoreCase)).FirstOrDefault();

            if (existing is null)
            {
                EventTypePaging.Add(progress);
            }
            else
            {
                existing.PaginationToken = progress.PaginationToken;
                existing.ProcessedCount  = progress.ProcessedCount;
                existing.TotalCount      = progress.TotalCount;
            }
        }