Ejemplo n.º 1
0
        public static EventToMethodRoute Create <TRouteType>(Component routeOutComponent, EventInfo eventInfo, Component routeInComponent, Expression <Action <TRouteType> > methodExpression, RouteConverter routeConverter)
        {
            if (eventInfo == null)
            {
                throw new ArgumentNullException("eventInfo");
            }

            return(EventToMethodRoute.Create(routeOutComponent, eventInfo.Name, routeInComponent, methodExpression, routeConverter));
        }
Ejemplo n.º 2
0
 public static EventToMethodRoute Create <TRouteType>(Component routeOutComponent, EventInfo eventInfo, Component routeInComponent, Expression <Action <TRouteType> > methodExpression)
 {
     return(EventToMethodRoute.Create(routeOutComponent, eventInfo, routeInComponent, methodExpression, null));
 }