Asynchronus calls for search contacts api are not working. I am using asynchronus call, below is the code snippet. After exucuting the “.PostAsync” line process is stopping. Please suggest by seeing the below code snippet is really API support the async??
var client = new RestClient(“https://api.hubapi.com”);
var request = new RestRequest(“crm/v3/objects/contacts/search”, Method.Post);
request.AddHeader(“accept”, “application/json”);
request.AddHeader(“content-type”, “application/json”);
request.AddHeader(“authorization”, $“Bearer {_token}”);
var body = JsonConvert.SerializeObject(contactSearchRequest);
request.AddParameter(“application/json”, body, ParameterType.RequestBody);
var response = await client.PostAsync(request);