private byte[] CreatePayloadBytes(CommandBase command)
        {
            var commandBytes = CommandEncoder.Encode(command);

            return(PayloadHelper.CreatePayloadBytes(commandBytes, RemoteEndPoint.Secret));
        }
 private async Task Reply(UdpClient listener, IPEndPoint groupEP, string response)
 {
     byte[] reply        = Encoding.UTF8.GetBytes($"Response @{DateTime.Now.ToLongTimeString()} To {groupEP} \n{response}");
     var    payloadBytes = PayloadHelper.CreatePayloadBytes(reply, _listenerConfig.Secret);
     await listener.SendAsync(payloadBytes, payloadBytes.Length, groupEP);
 }