protected virtual Context CreateContext(object rawContext) { var request = CreateRequest(rawContext); var response = CreateResponse(rawContext); var context = new Context(rawContext, request, response); return context; }
protected virtual object GetOrCreateController(IAction cmd,RouteData routeData,Context context) { return null; //return this.ControllerFactory(cmd, routeData, context); }
protected virtual IAction GetOrCreateCommand(RouteData routeData,HttpMethods method,Context context) { return this.ActionFactory.GetOrCreateCommand(routeData,method,context); }
protected abstract Task<IArguments> CreateArgumentsAsync(IRequest request, RouteData routeData, Context context);
protected abstract Task<RouteData> RouteAsync(IRequest request, Context context);