C# Class MvcTemplate.Components.Security.AuthorizationProvider

Inheritance: IAuthorizationProvider
Afficher le fichier Open project: NonFactors/MVC5.Template Class Usage Examples

Private Properties

Свойство Type Description
AllowsUnauthorized System.Boolean
GetAction String
GetArea String
GetAuthorizeAs AuthorizeAsAttribute
GetController String
GetControllerType System.Type
GetMethod System.Reflection.MethodInfo
GetRequiredPermission String
GetValidControllers IEnumerable
GetValidMethods IEnumerable

Méthodes publiques

Méthode Description
AuthorizationProvider ( Assembly controllersAssembly ) : MvcTemplate.Components.Mvc
IsAuthorizedFor ( Int32 accountId, String area, String controller, String action ) : System.Boolean
Refresh ( ) : void

Private Methods

Méthode Description
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

Method Details

AuthorizationProvider() public méthode

public AuthorizationProvider ( Assembly controllersAssembly ) : MvcTemplate.Components.Mvc
controllersAssembly System.Reflection.Assembly
Résultat MvcTemplate.Components.Mvc

IsAuthorizedFor() public méthode

public IsAuthorizedFor ( Int32 accountId, String area, String controller, String action ) : System.Boolean
accountId System.Int32
area String
controller String
action String
Résultat System.Boolean

Refresh() public méthode

public Refresh ( ) : void
Résultat void