C# Class RunningObjects.Core.Controllers.ControllerBase

Inheritance: Controller
ファイルを表示 Open project: edurdias/RunningObjects

Protected Methods

Method Description
CacheableView ( string viewName, Query query, Func modelAccessor, Action changeSettings ) : System.Web.Mvc.ActionResult
CreateInstanceOf ( Type modelType, Method method, ActionResult>.Func onSuccess, ActionResult>.Func onException ) : System.Web.Mvc.ActionResult
DeleteInstanceOf ( Type modelType, object key, Func onSuccess, ActionResult>.Func onException, Func onNotFound ) : System.Web.Mvc.ActionResult
EditInstanceOf ( Type modelType, Model model, ActionResult>.Func onSuccess, ActionResult>.Func onException, Func onNotFound ) : System.Web.Mvc.ActionResult
ExecuteMethodOf ( Type modelType, Method model, Func onSuccess, ActionResult>.Func onSuccessWithReturn, ActionResult>.Func onException, Func onNotFound, string key = null ) : System.Web.Mvc.ActionResult
GetDefaultQueryOf ( Type modelType ) : Query.Query
GetInstanceOf ( Type modelType, object key, ModelDescriptor descriptor ) : object
GetQueryById ( Type modelType ) : Query.Query
HandleException ( Exception ex ) : void
OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
OnException ( System.Web.Mvc.ExceptionContext filterContext ) : void
OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
ParseResult ( Method model, object @return ) : object

Private Methods

Method Description
GetKeyValues ( object key, ModelDescriptor descriptor ) : object

Method Details

CacheableView() protected method

protected CacheableView ( string viewName, Query query, Func modelAccessor, Action changeSettings ) : System.Web.Mvc.ActionResult
viewName string
query RunningObjects.Core.Query.Query
modelAccessor Func
changeSettings Action
return System.Web.Mvc.ActionResult

CreateInstanceOf() protected method

protected CreateInstanceOf ( Type modelType, Method method, ActionResult>.Func onSuccess, ActionResult>.Func onException ) : System.Web.Mvc.ActionResult
modelType System.Type
method Method
onSuccess ActionResult>.Func
onException ActionResult>.Func
return System.Web.Mvc.ActionResult

DeleteInstanceOf() protected method

protected DeleteInstanceOf ( Type modelType, object key, Func onSuccess, ActionResult>.Func onException, Func onNotFound ) : System.Web.Mvc.ActionResult
modelType System.Type
key object
onSuccess Func
onException ActionResult>.Func
onNotFound Func
return System.Web.Mvc.ActionResult

EditInstanceOf() protected method

protected EditInstanceOf ( Type modelType, Model model, ActionResult>.Func onSuccess, ActionResult>.Func onException, Func onNotFound ) : System.Web.Mvc.ActionResult
modelType System.Type
model Model
onSuccess ActionResult>.Func
onException ActionResult>.Func
onNotFound Func
return System.Web.Mvc.ActionResult

ExecuteMethodOf() protected method

protected ExecuteMethodOf ( Type modelType, Method model, Func onSuccess, ActionResult>.Func onSuccessWithReturn, ActionResult>.Func onException, Func onNotFound, string key = null ) : System.Web.Mvc.ActionResult
modelType System.Type
model Method
onSuccess Func
onSuccessWithReturn ActionResult>.Func
onException ActionResult>.Func
onNotFound Func
key string
return System.Web.Mvc.ActionResult

GetDefaultQueryOf() protected method

protected GetDefaultQueryOf ( Type modelType ) : Query.Query
modelType System.Type
return Query.Query

GetInstanceOf() protected static method

protected static GetInstanceOf ( Type modelType, object key, ModelDescriptor descriptor ) : object
modelType System.Type
key object
descriptor ModelDescriptor
return object

GetQueryById() protected method

protected GetQueryById ( Type modelType ) : Query.Query
modelType System.Type
return Query.Query

HandleException() protected method

protected HandleException ( Exception ex ) : void
ex System.Exception
return void

OnActionExecuted() protected method

protected OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
return void

OnActionExecuting() protected method

protected OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
return void

OnException() protected method

protected OnException ( System.Web.Mvc.ExceptionContext filterContext ) : void
filterContext System.Web.Mvc.ExceptionContext
return void

OnResultExecuting() protected method

protected OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutingContext
return void

ParseResult() protected method

protected ParseResult ( Method model, object @return ) : object
model Method
@return object
return object