예제 #1
0
        public bool IsNotDuplicate(ReadingMessage readingMessage)
        {
            var eventId = readingMessage.Reading.EventId;

            if (_previousEventIds.Contains(eventId))
            {
                return(false);
            }

            _previousEventIds.Add(eventId);
            return(true);
        }
예제 #2
0
 public bool FromValidLocation(ReadingMessage readingMessage)
 {
     return(_validLocationIds.Contains(readingMessage.Reading.LocationId));
 }