private async Task UpdateCheckpoint(List <IEventMessage> events) { if (events.Count > 0) { var eventCheckpoint = events[events.Count - 1]; await _checkpointClient.SetCheckpointAsync(eventCheckpoint); } }
private async Task UpdateCheckpoint(IEnumerable <IEventMessage> events, IEnumerable <KeyValuePair <Metric, double> > eventMetrics) { if (events.Count() > 0) { var eventCheckpoint = events.ElementAt(events.Count() - 1); await _checkpointClient.SetCheckpointAsync(eventCheckpoint, eventMetrics); } }