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
Afficher le fichier Open project: bonesoul/uhttpsharp

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public ControllerHandler ( IController controller, IModelBinder modelBinder, IView view ) : System
controller IController
modelBinder IModelBinder
view IView
Résultat System

Handle() public méthode

public Handle ( IHttpContext context, Func next ) : System.Threading.Tasks.Task
context IHttpContext
next Func
Résultat System.Threading.Tasks.Task