Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var       config = SystemConfig.GetConfig <Config>("client");
            HubClient client = new HubClient(config);

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

            return(config);
        }
Exemplo n.º 4
0
 public MySqlMenuBuilder()
 {
     connStr = SystemConfig.GetConfig <Dictionary <string, string> >("mysql")["ConnectionString"];
 }