Skip to content

Commit

Permalink
Filter out abstract implementations of IEventHander when registering …
Browse files Browse the repository at this point in the history
…all handlers in an assembly
  • Loading branch information
jasondentler committed Feb 17, 2011
1 parent 4a7ac30 commit ac8116a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ private static void RegisterHandler(object handler, Type eventDataType, InProces
private static bool ImplementsAtLeastOneIEventHandlerInterface(Type type)
{
return type.IsClass &&
!type.IsAbstract &&
type.GetInterfaces().Any(IsIEventHandlerInterface);
}

Expand Down

0 comments on commit ac8116a

Please sign in to comment.