private static void WriteServerInfo(ServerInfo si)
 {
     using (var fs = new FileStream(uniqueName, FileMode.OpenOrCreate, FileAccess.ReadWrite))
     {
         try
         {
             var formatter = new BinaryFormatter();
             formatter.Serialize(fs, si);
         }
         catch (SerializationException e)
         {
             Composable.GetExport<IXLogger>().Error(e, "Failed to serialize. Reason: {e}" + e.Message);
         }
     }
 }
 public static void SetServerInfo(ServerInfo si)
 {
     WriteServerInfo(si);
 }