NServiceBus
NServiceBus copied to clipboard
Empty message received in unobstrusive mode with BinarySerializer
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.
Testing Procedures
- In Unobtrisuve sample, change both Client and Server EndpointConfig.cs file to include BinarySerializer():
Configure.Instance.RijndaelEncryptionService().BinarySerializer();
- Add [Serializable] on class MyCommand
Results
- Command should be sent without errors (message empty) from Client to Server