rebus-org / RebusSamples

Small sample projects
https://mookid.dk/category/rebus
115 stars 75 forks source link

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

Open mivewi opened 1 year ago

mivewi commented 1 year ago

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?

JanRou commented 1 year ago

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