예제 #1
0
 public static ComponentRegistration <TComponent> ListensToEvent <TComponent>(
     this ComponentRegistration <TComponent> registration,
     Type eventType,
     string methodName
     ) where TComponent : class
 {
     return(registration.ListensToEvent(
                eventType,
                typeof(TComponent).GetMethod(methodName, new[] { eventType })
                ));
 }