NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

Empty message received in unobstrusive mode with BinarySerializer

Open angelMachin opened this issue 14 years ago • 1 comments

When trying to send a command in unobstrusive mode (without implementing IMessage, ICommand, ... ) and BinarySerializer I am getting a "Received an empty message - ignoring" message.

  • Adding the ICommand interface to the commands solves the issue.
  • Just detected in BinarySerializer; XmlSerializer is working fine with the same configuration in unobstrusive mode.

angelMachin avatar Jun 12 '12 09:06 angelMachin

Testing Procedures

  1. In Unobtrisuve sample, change both Client and Server EndpointConfig.cs file to include BinarySerializer():
Configure.Instance.RijndaelEncryptionService().BinarySerializer();
  1. Add [Serializable] on class MyCommand

Results

  1. Command should be sent without errors (message empty) from Client to Server

shlomii avatar Jun 19 '12 17:06 shlomii