C# Class BeiDream.Web.Api.Authorization.ApiAuthorizeAttributeBase

Inheritance: System.Web.Http.AuthorizeAttribute
Exibir arquivo Open project: BeiMeng/BeiDream

Protected Methods

Method Description
ApiAuthorizeAttributeBase ( string permission ) : System
CreatePermissionManager ( ) : IPermissionManager

创建权限管理器

IsAuthorized ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool

Method Details

ApiAuthorizeAttributeBase() protected method

protected ApiAuthorizeAttributeBase ( string permission ) : System
permission string
return System

CreatePermissionManager() protected abstract method

创建权限管理器
protected abstract CreatePermissionManager ( ) : IPermissionManager
return IPermissionManager

IsAuthorized() protected method

protected IsAuthorized ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool
actionContext System.Web.Http.Controllers.HttpActionContext
return bool