/// <summary> /// Constructor initializes custom action invoker /// </summary> public RebelController() { //this could be done by IoC but we really don't want people to have to create //the custom constructor each time they want to create a controller that extends this one. ActionInvoker = new RebelActionInvoker(RoutableRequestContext); RoutableRequestContext = DependencyResolver.Current.GetService <IRoutableRequestContext>(); }
/// <summary> /// Constructor initializes custom action invoker /// </summary> public RebelController(IRoutableRequestContext routableRequestContext) { ActionInvoker = new RebelActionInvoker(RoutableRequestContext); RoutableRequestContext = routableRequestContext; }