示例#1
0
        private FieldVisitInfo AppendMappedFieldVisitInfo(FieldVisitMapper mapper, LocationInfo locationInfo)
        {
            var fieldVisitDetails = mapper.MapFieldVisitDetails();

            _logger.Info($"Successfully parsed one visit '{fieldVisitDetails.FieldVisitPeriod.Start:O}/{fieldVisitDetails.FieldVisitPeriod.End:O}' for location '{locationInfo.LocationIdentifier}'");

            return(_appender.AddFieldVisit(locationInfo, fieldVisitDetails));
        }
        private FieldVisitInfo AppendMappedFieldVisitInfo(Channel channel, LocationInfo locationInfo)
        {
            var mapper            = new FieldVisitMapper(channel, Location);
            var fieldVisitDetails = mapper.MapFieldVisitDetails();

            Logger.Info($"Successfully parsed one visit '{fieldVisitDetails.FieldVisitPeriod}' for location '{locationInfo.LocationIdentifier}'");

            return(Appender.AddFieldVisit(locationInfo, fieldVisitDetails));
        }
示例#3
0
        private FieldVisitInfo AppendMappedFieldVisitInfo(XmlRootSummary summary, LocationInfo locationInfo)
        {
            var config            = new ConfigLoader(_appender).Load();
            var mapper            = new FieldVisitMapper(config, summary, _location);
            var fieldVisitDetails = mapper.MapFieldVisitDetails();

            _logger.Info($"Successfully parsed one visit '{fieldVisitDetails.FieldVisitPeriod}' " +
                         $"for location '{locationInfo.LocationIdentifier}'");

            return(_appender.AddFieldVisit(locationInfo, fieldVisitDetails));
        }