RebusSamples icon indicating copy to clipboard operation
RebusSamples copied to clipboard

Q: Can't receive messages when object published is not exactly the same shared

Open mivewi opened this issue 11 months ago • 1 comments

When trying to solve my issue with not receiving messages, I tried playing with this sample: "https://github.com/rebus-org/RebusSamples/tree/master/PubSubNative" and found that the object, which is published from the publisher to the subscribers, have to be the exact same shared object "StringMessage". It does not work when I create classes by the same name and properties in each project. I like it to not have the shared files but have their own classes - if it's possible?

mivewi avatar Aug 05 '23 23:08 mivewi

Hi mivewi,

You can create a nuget packet with the definitions of data transfer objects, dtos, when you don't like a shared project. Then you can control all projects use the same version of the packet. Hope it helps!

/Jan

JanRou avatar Aug 06 '23 08:08 JanRou