public void SaveSession(string sessionId, LugubrisSession session)
 {
     var stream = File.OpenWrite(this.GetSessionPath(sessionId));
     byte[] json = UTF8Encoding.UTF8.GetBytes(session.ToJson());
     stream.Write(json, 0, json.Length);
     stream.Close();
 }
 public string CreateSaveSession(LugubrisSession session)
 {
     var id = this.GenerateId();
     this.SaveSession(id, session);
     return id;
 }