コード例 #1
0
 private string EventHandlerMethodName(EventSubscriber eventSubscriber)
 {
     return(eventSubscriber.EventHandler ?? ("On" + eventName));
 }
コード例 #2
0
 public EventSubscribers To(string subscriberComponentName, string methodHandler)
 {
     subscribers.Add(EventSubscriber.Named(subscriberComponentName).HandledBy(methodHandler));
     return(this);
 }
コード例 #3
0
 public EventSubscribers To(string subscriberComponentName)
 {
     subscribers.Add(EventSubscriber.Named(subscriberComponentName));
     return(this);
 }
コード例 #4
0
 public EventSubscribers To <TSubscriber>(string subscriberComponentName, Expression <Action <TSubscriber> > methodHandler)
 {
     subscribers.Add(EventSubscriber.Named(subscriberComponentName).HandledBy(methodHandler));
     return(this);
 }