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

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