C# Class Snooze.ResourceActionInvoker

Find actions methods that match the HTTP method and has the requested Url type as the first parameter.
Inheritance: System.Web.Mvc.ControllerActionInvoker
Show file Open project: nhsevidence/Snooze Class Usage Examples

Public Methods

Method Description
FindActionMethod ( Type controllerType, Type urlType, string httpMethod ) : MethodInfo

Protected Methods

Method Description
CreateActionResult ( ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor, object actionReturnValue ) : System.Web.Mvc.ActionResult
FindAction ( ControllerContext controllerContext, System.Web.Mvc.ControllerDescriptor controllerDescriptor, string actionName ) : System.Web.Mvc.ActionDescriptor
InvokeActionMethod ( ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor, object>.IDictionary parameters ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
CheckChildAction ( bool isChildaction, Type contollerType, string url ) : void
GetHttpMethod ( ControllerContext controllerContext ) : string
GetMethodInfo ( Type controllerType, Type urlType, string httpMethod ) : MethodInfo
GetUrlType ( ControllerContext controllerContext ) : Type
IsSnoozePartial ( ControllerContext controllerContext ) : bool

Method Details

CreateActionResult() protected method

protected CreateActionResult ( ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor, object actionReturnValue ) : System.Web.Mvc.ActionResult
controllerContext ControllerContext
actionDescriptor System.Web.Mvc.ActionDescriptor
actionReturnValue object
return System.Web.Mvc.ActionResult

FindAction() protected method

protected FindAction ( ControllerContext controllerContext, System.Web.Mvc.ControllerDescriptor controllerDescriptor, string actionName ) : System.Web.Mvc.ActionDescriptor
controllerContext ControllerContext
controllerDescriptor System.Web.Mvc.ControllerDescriptor
actionName string
return System.Web.Mvc.ActionDescriptor

FindActionMethod() public static method

public static FindActionMethod ( Type controllerType, Type urlType, string httpMethod ) : MethodInfo
controllerType System.Type
urlType System.Type
httpMethod string
return System.Reflection.MethodInfo

InvokeActionMethod() protected method

protected InvokeActionMethod ( ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor, object>.IDictionary parameters ) : System.Web.Mvc.ActionResult
controllerContext ControllerContext
actionDescriptor System.Web.Mvc.ActionDescriptor
parameters object>.IDictionary
return System.Web.Mvc.ActionResult