using System; namespace Sog { public class ServerConfigMgr : Singleton { public object m_serverConfig; public T ReloadServerConfig(ServerApp app, string filePathName) { try { object config = null; config = JsonConfig.ParseAppConfigFileAndReplaceVariable(app, filePathName); if (config != null) { m_serverConfig = config; } return (T)m_serverConfig; } catch (Exception ex) { TraceLog.Exception(ex); return (T)m_serverConfig; } } } }