public override void Run()
        {
            LiveModel liveModel = Helpers.CreateLiveModelOrExit(this.ConfigPath);
            RLDriver  rlDriver  = new RLDriver(liveModel, loopKind: this.GetLoopKind());

            rlDriver.StepInterval = TimeSpan.FromMilliseconds(this.SleepIntervalMs);

            using (TextReader textReader = File.OpenText(this.LogPath))
            {
                IEnumerable <string> dsJsonLines  = textReader.LazyReadLines();
                ReplayStepProvider   stepProvider = new ReplayStepProvider(dsJsonLines);

                rlDriver.Run(stepProvider);
            }
        }
Beispiel #2
0
        public static void RunReplay(string [] args)
        {
            if (args.Length != 2)
            {
                // TODO: Better usage
                WriteErrorAndExit("Missing path to client configuration json and dsjson log");
            }

            LiveModel liveModel = CreateLiveModelOrExit(args[0]);
            RLDriver  rlDriver  = new RLDriver(liveModel);

            using (TextReader textReader = File.OpenText(args[1]))
            {
                IEnumerable <string> dsJsonLines  = textReader.LazyReadLines();
                ReplayStepProvider   stepProvider = new ReplayStepProvider(dsJsonLines);

                rlDriver.Run(stepProvider);
            }
        }