private void OnCommandSended(object sender, CommandExecEventArgs e)
        {
            Byte[] message = convertToList(e);

            var dataOutPayload = new DataOutPayloadBase
            {
                Bytes = message
            };

            CommandCompleteEventArgs evArgs = new CommandCompleteEventArgs(dataOutPayload);

            MessageBox.Show("enviado 2" + e._header);
            completeEvent?.Invoke(this, evArgs);
            // Console.WriteLine("\nThe book '" + e._command + "' has been read by Reader A");
        }
Example #2
0
        private void OnCommandComplete(object sender, CommandCompleteEventArgs e)
        {
            MessageBox.Show("enviado 2" + e._command);

            var dataOutPayload = new DataOutPayloadBase
            {
                Bytes = new Byte[] { 1, 2, 3, 4 }
            };

            var dataOutPayloadWrapper = new BrokerPayloadWrapperBase <IDataOutPayload>
            {
                Payload = dataOutPayload
            };

            Publish(dataOutPayloadWrapper);
        }