var name = Process.GetCurrentProcess().ProcessName;
if (Process.GetProcessesByName(name).Length > 1)
return;
private static async Task<HttpResponseMessage> ExecuteRaw(RequestData request)
{
const string contentType = "application/x-www-form-urlencoded";
var content = new HttpStringContent(request.Content, UnicodeEncoding.Utf8, contentType);
HttpResponseMessage response;
using (var client = new HttpClient())
response = await client.PostAsync(request.Uri, content);
return response;
}