C# Class NJsonApi.Serialization.JsonApiActionFilter

Inheritance: IActionFilter
显示文件 Open project: jacek-gorgon/NJsonApi Class Usage Examples

Public Methods

Method Description
ExecuteActionFilterAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, CancellationToken cancellationToken, Func continuation ) : Task
InternalActionExecuted ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken ) : void
InternalActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext, CancellationToken cancellationToken ) : void
JsonApiActionFilter ( JsonApiTransformer jsonApiTransformer, Configuration configuration ) : System

Private Methods

Method Description
GetRoutePrefix ( System.Web.Http.Controllers.HttpActionContext context ) : string
GetRoutePrefix ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext ) : string
HandlePostRequests ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext, CompoundDocument transformed ) : void

Method Details

ExecuteActionFilterAsync() public method

public ExecuteActionFilterAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, CancellationToken cancellationToken, Func continuation ) : Task
actionContext System.Web.Http.Controllers.HttpActionContext
cancellationToken System.Threading.CancellationToken
continuation Func
return Task

InternalActionExecuted() public method

public InternalActionExecuted ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken ) : void
actionExecutedContext System.Web.Http.Filters.HttpActionExecutedContext
cancellationToken System.Threading.CancellationToken
return void

InternalActionExecuting() public method

public InternalActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext, CancellationToken cancellationToken ) : void
actionContext System.Web.Http.Controllers.HttpActionContext
cancellationToken System.Threading.CancellationToken
return void

JsonApiActionFilter() public method

public JsonApiActionFilter ( JsonApiTransformer jsonApiTransformer, Configuration configuration ) : System
jsonApiTransformer JsonApiTransformer
configuration Configuration
return System