public static int GetPort() { String temp = ConfigSystem.ReadConfig("Config", "Broker", "Port"); try { return(Int32.Parse(temp)); } catch { return(19999); } }
public static String GetWebRoot() { return(ConfigSystem.ReadConfig("Config", "Server", "Root")); }
public static String GetIp() { return(ConfigSystem.ReadConfig("Config", "Server", "Ip")); }
public static String GetDebugParam() { return(ConfigSystem.ReadConfig("Config", "Debug", "Param")); }
public static String GetDebugKey() { return(ConfigSystem.ReadConfig("Config", "Debug", "Key")); }
public static Boolean IsDebug() { String debug = ConfigSystem.ReadConfig("Config", "Debug", "Debug"); return(debug.Equals("1")); }