ITrackOfCheckpoints ReloadTrack(DateTime startTime, IFinishCriteria finishCriteria) { var track = new TrackOfCheckpoints(startTime, finishCriteria); // foreach (var checkpoint in FlattenCheckpointLog(LogEntries).Select(x => autoMapperProvider.Mapper.Map<Checkpoint>(x))) // { // track.Append(checkpoint); // } return(track); }
public void Initialize(IEnumerable <Checkpoint> initialCheckpoints = null) { Track = new TrackOfCheckpoints(StartTime, FinishCriteria); RawCheckpoints.Clear(); AggCheckpoints.Clear(); checkpointAggregator = TimestampAggregatorConfigurations.ForCheckpoint(MinLap); checkpointAggregator.Subscribe(Track.Append); checkpointAggregator.AggregatedCheckpoints.Subscribe(AggCheckpoints.Add); foreach (var checkpoint in initialCheckpoints) { checkpointAggregator.OnNext(ResolveRiderId(checkpoint)); } }