Exemplo n.º 1
0
 public Configuration()
 {
     Console.WriteLine("Load All Configuration...");
     Console.WriteLine("-------------------------------------------");
     Database = new DatabaseStruct(
         _DBCfg.GetString("db.mongo.url"),
         _DBCfg.GetString("db.mongo.name")
     );
     Log.Info("Loaded Database Configuration");
     Network = new NetworkStruct(
         _NWCfg.GetString("public.ip"),
         _NWCfg.GetInt("public.port"),
         _NWCfg.GetString("private.ip"),
         _NWCfg.GetInt("private.port")
     );
     Log.Info("Loaded Network Configuration");
     Setting = new SettingStruct(
         _STCfg.GetBoolean("debuging"),
         _STCfg.GetBoolean("autoaccount"),
         _STCfg.GetBoolean("gmonly")
     );
     Log.Info("Loaded Setting Configuration");
     Console.WriteLine("\n-------------------------------------------\n");
 }
Exemplo n.º 2
0
 public Configuration()
 {
     Console.WriteLine("Load All Configuration...");
     Console.WriteLine("-------------------------------------------");
     Database = new DatabaseStruct(
         _DBCfg.GetString("db.mongo.url"),
         _DBCfg.GetString("db.mongo.name")
         );
     Log.Info("Loaded Database Configuration");
     Network = new NetworkStruct(
         _NWCfg.GetString("public.ip"),
         _NWCfg.GetInt("public.port"),
         _NWCfg.GetString("private.ip"),
         _NWCfg.GetInt("private.port")
         );
     Log.Info("Loaded Network Configuration");
     Setting = new SettingStruct(
         _STCfg.GetBoolean("debuging"),
         _STCfg.GetBoolean("autoaccount"),
         _STCfg.GetBoolean("gmonly")
         );
     Log.Info("Loaded Setting Configuration");
     Console.WriteLine("\n-------------------------------------------\n");
 }