Beispiel #1
0
 public static string Search(this CoralClient client, CoralSearchParameters parameters)
 {
     return(client.MakeRequest(
                CoralSearchClient.ENDPOINT, HttpMethod.Post,
                query: parameters.GetQueryString(), body: parameters.GetPostBody()
                ).Result);
 }
Beispiel #2
0
 public static async Task <string> SearchAsync(this CoralClient client, CoralSearchParameters parameters)
 {
     return(await client.MakeRequest(
                CoralSearchClient.ENDPOINT, HttpMethod.Post,
                query : parameters.GetQueryString(), body : parameters.GetPostBody()
                ));
 }