NServiceBus/NServiceBus — Issue #164: Hide Bus property from Sage<T>
Author: dvdstelt
Created: 2011-12-12 13:12:44+00:00
State: open

I started of with a IHandleMessages and added an IBus Bus { get; set} property, so that I could access the Bus instance in my handler. After that I changed the implementation/inheritance to Sage but forgot to remove the property.

As far as I know, Visual Studio never showed me a warning. That's my personal problem. However, if Visual Studio does, it gives you a warning that you hide the inherited Bus property. Because I never saw or notice the warning, my ReplyToOriginator did not work. Took me some time to figure it out! :)

Here's more info on the subject:
http://tech.groups.yahoo.com/group/nservicebus/message/12339

Perhaps you could provide a better warning, instead of a "Null reference exception", because it's deep down into nServiceBus and we have no way of figuring out what's happening.

Thanks