コード例 #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>();
 }
コード例 #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>());
        }