private async Task <string> PostRequest(RpcCommand request) { try { using (var client = new JsonHttpClient(VergeConfig.GetUri())) { client.AddHeader("Authorization", VergeConfig.GetAuthHeaderValue()); var response = await client.PostAsync <string>(new Payload(request)); return(response); } } catch (Exception ex) { throw new HttpError(HttpStatusCode.InternalServerError, ex); } }