public Process ( Message message ) : void | ||
message | Message | The message to process. |
Результат | void |
public override void Run() { Message message; SessionModel session = new SessionModel(); using(var input = File.OpenRead(_path)) using(var reader = new DecoratedObjectReader(input)) { while((message = reader.Read<Message>()) != null) { session.Process(message); } } session.Print(); }
public static void Main(string[] args) { new SpeedCapturesModelTest().only_the_fastest_six_speeds_are_maintained(); Message message; var session = new SessionModel(); var path = @"D:\dev\.net\src\ak-f1-timing\tms\2011\14-singapore\race.tms"; using(var reader = F1Timing.Playback.Read(path)) { reader.PlaybackSpeed = 5000000d; while((message = reader.Read()) != null) { session.Process(message); } Print(session.SpeedCaptures.S1); Print(session.SpeedCaptures.S2); Print(session.SpeedCaptures.S3); Print(session.SpeedCaptures.Straight); Debugger.Break(); } }