C# Class RunningObjects.Core.Controllers.ControllerBase

Inheritance: Controller
Afficher le fichier Open project: edurdias/RunningObjects

Méthodes protégées

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

Méthode Description
GetKeyValues ( object key, ModelDescriptor descriptor ) : object

Method Details

CacheableView() protected méthode

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
Résultat System.Web.Mvc.ActionResult

CreateInstanceOf() protected méthode

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
Résultat System.Web.Mvc.ActionResult

DeleteInstanceOf() protected méthode

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
Résultat System.Web.Mvc.ActionResult

EditInstanceOf() protected méthode

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
Résultat System.Web.Mvc.ActionResult

ExecuteMethodOf() protected méthode

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
Résultat System.Web.Mvc.ActionResult

GetDefaultQueryOf() protected méthode

protected GetDefaultQueryOf ( Type modelType ) : Query.Query
modelType System.Type
Résultat Query.Query

GetInstanceOf() protected static méthode

protected static GetInstanceOf ( Type modelType, object key, ModelDescriptor descriptor ) : object
modelType System.Type
key object
descriptor ModelDescriptor
Résultat object

GetQueryById() protected méthode

protected GetQueryById ( Type modelType ) : Query.Query
modelType System.Type
Résultat Query.Query

HandleException() protected méthode

protected HandleException ( Exception ex ) : void
ex System.Exception
Résultat void

OnActionExecuted() protected méthode

protected OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
Résultat void

OnActionExecuting() protected méthode

protected OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
Résultat void

OnException() protected méthode

protected OnException ( System.Web.Mvc.ExceptionContext filterContext ) : void
filterContext System.Web.Mvc.ExceptionContext
Résultat void

OnResultExecuting() protected méthode

protected OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutingContext
Résultat void

ParseResult() protected méthode

protected ParseResult ( Method model, object @return ) : object
model Method
@return object
Résultat object