C# Class uhttpsharp.Handlers.ControllerHandler

Need some kind of way to prevent default behavior of controller that inherits a base controller... since we are not using virtual methods
Inheritance: IHttpRequestHandler
显示文件 Open project: bonesoul/uhttpsharp

Public Methods

Method Description
ControllerHandler ( IController controller, IModelBinder modelBinder, IView view ) : System
Handle ( IHttpContext context, Func next ) : System.Threading.Tasks.Task

Private Methods

Method Description
CallMethod ( IHttpContext context, IController controller ) : Task
CreateControllerFunction ( ControllerMethod controllerMethod ) : ControllerFunction
GenerateRouteFunction ( MethodInfo getter ) : IController>.Func
GetController ( IEnumerable requestParameters, IHttpContext context ) : Task
LoadRoutes ( Type controllerType ) : void
MethodNotFoundControllerFunction ( IHttpContext context, IModelBinder binder, object controller ) : Task

Method Details

ControllerHandler() public method

public ControllerHandler ( IController controller, IModelBinder modelBinder, IView view ) : System
controller IController
modelBinder IModelBinder
view IView
return System

Handle() public method

public Handle ( IHttpContext context, Func next ) : System.Threading.Tasks.Task
context IHttpContext
next Func
return System.Threading.Tasks.Task