예제 #1
0
 public ConDepEnvConfig DeSerialize(string json)
 {
     if (_crypto.IsEncrypted(json))
     {
         json = _crypto.Decrypt(json);
     }
     return(JsonConvert.DeserializeObject <ConDepEnvConfig>(json, JsonSettings));
 }
예제 #2
0
 public T DeSerialize(string config)
 {
     if (_crypto.IsEncrypted(config))
     {
         config = _crypto.Decrypt(config);
     }
     return(JsonConvert.DeserializeObject <T>(config, JsonSettings));
 }