-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inherited interface messages won't process if conventions is used and handler only exists for base message #4567
Comments
Possibly related to #4452 |
@Particular/nservicebus-maintainers does this qualify as critical? |
Talking this through with @timbussmann we decided to not rush the fix for this into 6.2 since its to risky. The user have a workaround for now and the bug would be found during development. Assigning this to 6.3 since we still believe this needs to be addressed |
@andreasohlund any idea when we can expect this? We're in the process of upgrading to NSB6 and running into this in a number of places. |
My best guestimate is that 6.3.0 will be released end of next week. Does that align with your deadline? |
That general timeframe should be fine for us. Thank you! |
I am running through the same issue. what is the work around for the issue |
@praveenkonduru we recommend to upgrade to NServiceBus 6.3 or higher. Those versions should resolve the issue. |
Problem
The combination of
does not work correctly. :(
If you publish a interface based message that inherits from another interface based message, a subscriber of the base message will blow up with a deserialization message stating that it can not instanciate the inherited type at publish time.
Changing to the xmlserializer, removing the inheritance, using classes instead of interfaces or inheriting from IEvent fixes the problem.
Repro
Originally reported by user. Repro available here.
Code highlights
Error message on subscriber receiving IInheritedEvent
The text was updated successfully, but these errors were encountered: