C# Класс MvcTemplate.Components.Security.AuthorizationProvider

Наследование: IAuthorizationProvider
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AllowsUnauthorized System.Boolean
GetAction String
GetArea String
GetAuthorizeAs AuthorizeAsAttribute
GetController String
GetControllerType System.Type
GetMethod System.Reflection.MethodInfo
GetRequiredPermission String
GetValidControllers IEnumerable
GetValidMethods IEnumerable

Открытые методы

Метод Описание
AuthorizationProvider ( Assembly controllersAssembly ) : MvcTemplate.Components.Mvc
IsAuthorizedFor ( Int32 accountId, String area, String controller, String action ) : System.Boolean
Refresh ( ) : void

Приватные методы

Метод Описание
AllowsUnauthorized ( Type controller, MethodInfo method ) : System.Boolean
GetAction ( MethodInfo method ) : String
GetArea ( Type type ) : String
GetAuthorizeAs ( MemberInfo action ) : AuthorizeAsAttribute
GetController ( Type type ) : String
GetControllerType ( String area, String controller ) : Type
GetMethod ( Type controller, String action ) : MethodInfo
GetRequiredPermission ( Type type, MethodInfo method ) : String
GetValidControllers ( Assembly assembly ) : IEnumerable
GetValidMethods ( Type controller ) : IEnumerable

Описание методов

AuthorizationProvider() публичный Метод

public AuthorizationProvider ( Assembly controllersAssembly ) : MvcTemplate.Components.Mvc
controllersAssembly System.Reflection.Assembly
Результат MvcTemplate.Components.Mvc

IsAuthorizedFor() публичный Метод

public IsAuthorizedFor ( Int32 accountId, String area, String controller, String action ) : System.Boolean
accountId System.Int32
area String
controller String
action String
Результат System.Boolean

Refresh() публичный Метод

public Refresh ( ) : void
Результат void