Example #1
0
        private async Task <IEnumerable <SubmissionEvent> > GetUnprocessedEvents()
        {
            var startingEventId = await GetStartingEventId();

            var unprocessedEvents = await _eventsApi.GetSubmissionEvents(startingEventId);

            return(unprocessedEvents.Items);
        }
 public async Task <PageOfResults <SubmissionEvent> > GetSubmissionEvents(long sinceEventId = 0, DateTime?sinceTime = null, long ukprn = 0, int page = 1)
 {
     return(await _retryPolicy.ExecuteAsync(() => _paymentsEventsApi.GetSubmissionEvents(sinceEventId, sinceTime, ukprn, page)));
 }