Пример #1
0
        static void Main(string[] args)
        {
            var       config = SystemConfig.GetConfig <Config>("client");
            HubClient client = new HubClient(config);

            client.ExecuteAsync().Wait();
        }
Пример #2
0
 protected void Application_Start(object sender, EventArgs e)
 {
     SystemConfig.GetConfig();
     if (!SystemConfig.HasConfig)
     {
         SystemConfig.InitializeConfig();
         SystemConfig.GetConfig();
     }
 }
Пример #3
0
        public static IocConfig GetConfig()
        {
            var config = SystemConfig.GetConfig <IocConfig>("ioc");

            return(config);
        }
Пример #4
0
 public MySqlMenuBuilder()
 {
     connStr = SystemConfig.GetConfig <Dictionary <string, string> >("mysql")["ConnectionString"];
 }