C# 클래스 SampleApplication.Controllers.FilterInjectionExample.LogFilter

A filter that loggs an actions.
상속: Ninject.Web.WebApi.Filter.AbstractActionFilter
파일 보기 프로젝트 열기: ninject/Ninject.Web.WebApi

공개 메소드들

메소드 설명
LogFilter ( log4net.ILog log, string prefix ) : System.Web.Http.Controllers

Initializes a new instance of the LogFilter class.

OnActionExecuted ( System actionExecutedContext ) : void

Called after the action method executes. Logs that an action was executed.

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

Called before an action method executes. Logs that an action is beeing executed.

메소드 상세

LogFilter() 공개 메소드

Initializes a new instance of the LogFilter class.
public LogFilter ( log4net.ILog log, string prefix ) : System.Web.Http.Controllers
log log4net.ILog The logger used to log.
prefix string The prefix.
리턴 System.Web.Http.Controllers

OnActionExecuted() 공개 메소드

Called after the action method executes. Logs that an action was executed.
public OnActionExecuted ( System actionExecutedContext ) : void
actionExecutedContext System The action executed context.
리턴 void

OnActionExecuting() 공개 메소드

Called before an action method executes. Logs that an action is beeing executed.
public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext The action context.
리턴 void