NimbusAPI / Nimbus

Nimbus is a .NET client library to provide an easy abstraction over common messaging frameworks.

Home Page:http://nimbusapi.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event subscription naming does not use fully-qualified handler type name

flakey-bit opened this issue · comments

The implementation of PathFactory::SubscriptionNameFor() currently uses handlerType.Name. It should use .FullName because otherwise an event subscription will get lost if there are two handlers for the same event type which happen to be named the same (but under different namespaces).

@flakey-bit is this a problem for both v2 and v3?

Yes it affects both versions.

From memory this is because of queue name length restrictions in ASB. I'd have to go double check that though.
We could throw on registration if you had two handlers with the same name for the same message though?

The code already (currently) handles names being too long by hashing the name and adding the hash as a suffix. So it should be a simple fix.

Cool, want to have a crack at it?

I'll take a look if I get a spare moment :)

@flakey-bit any progress?

Apologies for leading you on - I don't think I'll realistically ever have time to look at this.