Esempio n. 1
0
        protected virtual Context CreateContext(object rawContext)
        {

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