- I introduced a class, BinarySerialization and two methods that serialize by taking a Measurement object and deserialize by taking a byte as a parameter. Both work fine with Measurement s.
- For convenience, I’ve duplicated the codebase to test publish and subscribe methods separately and the Main() functions are customized accordingly. When testing, I compile and run the two files in separate command lines to see when messages arrive etc.
- The Main() functions each instantiate IMessageBus. But one calls the publisher the other calls the subscriber on the instantiated object.
- I am running into a runtime error that trace to a type cast error and I’m working on it.
Tune in, I will post the complete codebase tomorrow.