Esempio n. 1
0
 public static async Task<List<string>> Filter(string query, IDictionary<string, string> args = null)
 {
     var request = new GraphFilterRequest()
     {
         Query = query,
         Placeholders = args
     };
     var response = await request.ExecuteAsync();
     if (response.Status.IsSuccessful == false)
         throw response.Status.ToFault();
     return response.Ids ?? new List<string>();
 }
Esempio n. 2
0
        public static async Task <List <string> > Filter(string query, IDictionary <string, string> args = null)
        {
            var request = new GraphFilterRequest()
            {
                Query        = query,
                Placeholders = args
            };
            var response = await request.ExecuteAsync();

            if (response.Status.IsSuccessful == false)
            {
                throw response.Status.ToFault();
            }
            return(response.Ids ?? new List <string>());
        }