public static void ReplaySessionFromFile(string filename)
 {
     currentRecordSession = new SessionRecord(commandManager, filename);
     currentRecordSession.ReplayEvents(() => {
         currentRecordSession = null;
     });
 }
		public static void ReplaySessionFromFile (string filename)
		{
			currentRecordSession = new SessionRecord (commandManager, filename);
			currentRecordSession.ReplayEvents (() => {
				currentRecordSession = null;
			});
		}
        public static void StopRecordingSession(string filename = null)
        {
            if (currentRecordSession == null)
            {
                return;
            }

            currentRecordSession.Pause();

            if (filename != null)
            {
                currentRecordSession.WriteLogToFile(filename);
            }
            currentRecordSession = null;
        }
 public static SessionRecord StartRecordingSession()
 {
     currentRecordSession = new SessionRecord(commandManager);
     return(currentRecordSession);
 }
		public static void StopRecordingSession (string filename = null)
		{
			if (currentRecordSession == null) {
				return;
			}

			currentRecordSession.Pause ();

			if (filename != null) {
				currentRecordSession.WriteLogToFile (filename);
			}
			currentRecordSession = null;
		}
		public static SessionRecord StartRecordingSession ()
		{
			currentRecordSession = new SessionRecord (commandManager);
			return currentRecordSession;
		}