static void Main(string[] args) { var config = SystemConfig.GetConfig <Config>("client"); HubClient client = new HubClient(config); client.ExecuteAsync().Wait(); }
protected void Application_Start(object sender, EventArgs e) { SystemConfig.GetConfig(); if (!SystemConfig.HasConfig) { SystemConfig.InitializeConfig(); SystemConfig.GetConfig(); } }
public static IocConfig GetConfig() { var config = SystemConfig.GetConfig <IocConfig>("ioc"); return(config); }
public MySqlMenuBuilder() { connStr = SystemConfig.GetConfig <Dictionary <string, string> >("mysql")["ConnectionString"]; }