using (var client = new TcpClient(_settings.Host, _settings.Port))
{
using (var ns = client.GetStream())
{
using (var sr = new StreamReader(ns, Encoding.UTF8))
{
await ns.WriteAsync(requestData, 0, requestData.Length);
var result = await sr.ReadToEnd();
return ParseResponse(result);
}
}
}