Exemplo n.º 1
0
    public static void Load(string filePath)
    {
        var config = JsonAppConfig.Load <_ServerConfig>(filePath, 4);

        ServerUrl = config.ServerUrl;

        uint[] keyArray = ConvertEx.ToKey(config.EncryptionKey);
        Key1 = keyArray[0];
        Key2 = keyArray[1];
        Key3 = keyArray[2];
        Key4 = keyArray[3];

        AdminDB  = config.AdminDB;
        CommonDB = config.CommonDB;
        LogDB    = config.LogDB;

        RedisAdmin    = config.RedisAdmin;
        RedisAuth     = config.RedisAuth;
        RedisResponse = config.RedisResponse;
    }
Exemplo n.º 2
0
 public static void Load(string filePath)
 {
     Instance = JsonAppConfig.Load <Config>(filePath);
 }