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