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