public string Query(string command)
{
if (_client == null) {
_client = _clientFactory.Invoke();
_client.Connect(Port, (s) => {});
if (!_client.IsConnected)
return "";
}
var reply = _client.Request(command);
if (!_keepClientAlive) {
_client.Disconnect();
_client = null;
}
return reply;
}