C# Class _09_PerRouteMHOwnershipSample.Filters.EnsureOrderOwnershipAttribute

Inheritance: System.Attribute, IAuthorizationFilter
Show file Open project: tugberkugurlu/AdvancedWebAPI

Public Methods

Method Description
ExecuteAuthorizationFilterAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, CancellationToken cancellationToken, Func continuation ) : Task

Private Methods

Method Description
GetCustomerKey ( IHttpRouteData routeData ) : int
GetOrderKey ( IHttpRouteData routeData, Uri requestUri ) : int

Method Details

ExecuteAuthorizationFilterAsync() public method

public ExecuteAuthorizationFilterAsync ( 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