Hi All,
I am struggling with this a bit and was wondering if anyone was available to help out at all.
Lets take the simple example i have been trying to get to work for example.
Basket.API and Catalog.API
Basket is the consumer of an event from the Catalog - Product Price Changed (when the price is changed, it should push a ProductPriceChangedEvent onto the bus and should be picked up by the consumer in Basket and update a redis cache)
I did have the Event ProductPriceChangedEvent in both the catalog and the basket, but have realised that as they are now in different namespaces MassTransit does not wire them up.
I have moved the Event into a separate class library now and referenced the event from there (works fine)
My problem with this approach is that Micro-services should own their own data, so the models should be in the micro-services themselves. A whole bunch of my events use these models to pass data to and from service via the bus (i.e. Accepting an order event has a Basket in it). I do not want to create a common domain project so that the events can reference that project (only way i can see around this at the moment) so if anyone knows a way around this i would be very great full.
Is there a way to make mass transit ignore the namespace and just accept a message of type name or is there some other way around this my melted brain has not picked up on yet?
Many thanks in advance, if you need any clarifications please ask away.
Joe.