C# 클래스 WebApiDoodle.Web.Controllers.ApiControllerBase

Base APiController class which provides aditional two methods that run before and after the controller execution
상속: ApiController, IApiControllerBase
파일 보기 프로젝트 열기: tugberkugurlu/WebAPIDoodle

공개 메소드들

메소드 설명
ExecuteAsync ( System.Web.Http.Controllers.HttpControllerContext controllerContext, CancellationToken cancellationToken ) : Task
OnControllerExecuted ( HttpResponseMessage response ) : void

The method which will run just after the controller execution. If the returned Task{HttpResponseMessage} object is not in the RanToCompletion state, the povided HttpResponseMessage parameter will be null.

OnControllerExecuting ( HttpControllerExecutingContext controllerExecutingContext ) : void

The method which will run just before the controller execution. If this method sets HttpControllerExecutingContext.Response property to a non-null value, then the controller execution will be terminated and the given response message will be pass through.

메소드 상세

ExecuteAsync() 공개 메소드

public ExecuteAsync ( System.Web.Http.Controllers.HttpControllerContext controllerContext, CancellationToken cancellationToken ) : Task
controllerContext System.Web.Http.Controllers.HttpControllerContext
cancellationToken System.Threading.CancellationToken
리턴 Task

OnControllerExecuted() 공개 메소드

The method which will run just after the controller execution. If the returned Task{HttpResponseMessage} object is not in the RanToCompletion state, the povided HttpResponseMessage parameter will be null.
public OnControllerExecuted ( HttpResponseMessage response ) : void
response System.Net.Http.HttpResponseMessage
리턴 void

OnControllerExecuting() 공개 메소드

The method which will run just before the controller execution. If this method sets HttpControllerExecutingContext.Response property to a non-null value, then the controller execution will be terminated and the given response message will be pass through.
public OnControllerExecuting ( HttpControllerExecutingContext controllerExecutingContext ) : void
controllerExecutingContext HttpControllerExecutingContext
리턴 void