davybrion / Agatha

Agatha Request-Response Service Layer for .NET
http://davybrion.github.com/Agatha/
Other
86 stars 39 forks source link

Handler auto registration only by interface #19

Closed mantasaudickas closed 12 years ago

mantasaudickas commented 12 years ago

By implementing some services I noticed that my handlers are not registered. Looked at the code and found that implemented handlers requires to be derived from OneWayRequestHandler or from RequestHandler. However, I think that's why interfaces are implemented and handlers implementint IOneWayRequestHandler or IRequestHandler should be registered too.

davybrion commented 12 years ago

thx!

I did have to add an extra check to prevent open generic handlers from being registered... all of the registration tests for Spring were failing after merging your pull request, because an open generic handler was being registered, which should never happen. I guess the other containers just ignored this.