示例#1
0
 public async Task WriteFile(string path, QueryResponse <dynamic> data)
 {
     var json = JsonConvert.SerializeObject(data, Formatting.Indented);
     await FileEx.WriteAllTextAsync(path, json);
 }
示例#2
0
        public async Task <QueryResponse <dynamic> > ReadFile(string path)
        {
            var data = await FileEx.ReadAllTextAsync(path);

            return(JsonConvert.DeserializeObject <QueryResponse <dynamic> >(data));
        }