public Task SendAsync(string command)
 {
     return(SocketSender.SendAsync(
                IPEndpoint,
                UDPSocket,
                MaxUDPPacketSize,
                new ArraySegment <byte>(Encoding.UTF8.GetBytes(command))));
 }
 public Task SendAsync(string command)
 {
     return(SocketSender.SendAsync(_endPoint, _socket, _maxPacketSize,
                                   new ArraySegment <byte>(Encoding.UTF8.GetBytes(command))));
 }