C# Class Blog.Common.Web.Attributes.ApiRequestLoggerAttribute

Inheritance: System.Web.Http.Filters.ActionFilterAttribute
Show file Open project: jsnmgpnty/Blogness2.0

Public Methods

Method Description
OnActionExecuted ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext ) : void
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

Private Methods

Method Description
GetActionRoute ( System.Web.Http.Controllers.HttpControllerContext controllerContext ) : string
GetLogMessage ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext, long duration ) : string

Method Details

OnActionExecuted() public method

public OnActionExecuted ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext ) : void
actionExecutedContext System.Web.Http.Filters.HttpActionExecutedContext
return void

OnActionExecuting() public method

public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext
return void