C# Class ServiceStack.RequiresAnyPermissionAttribute

Inheritance: ServiceStack.AuthenticateAttribute
Show file Open project: nustack/ServiceStack

Public Methods

Method Description
Execute ( IRequest req, IResponse res, object requestDto ) : void
HasAnyPermissions ( IAuthSession session ) : bool
HasAnyPermissions ( IRequest req, IAuthSession session, IAuthRepository userAuthRepo = null ) : bool
RequiresAnyPermissionAttribute ( ) : System
RequiresAnyPermissionAttribute ( ApplyTo applyTo ) : System

Method Details

Execute() public method

public Execute ( IRequest req, IResponse res, object requestDto ) : void
req IRequest
res IResponse
requestDto object
return void

HasAnyPermissions() public method

public HasAnyPermissions ( IAuthSession session ) : bool
session IAuthSession
return bool

HasAnyPermissions() public method

public HasAnyPermissions ( IRequest req, IAuthSession session, IAuthRepository userAuthRepo = null ) : bool
req IRequest
session IAuthSession
userAuthRepo IAuthRepository
return bool

RequiresAnyPermissionAttribute() public method

public RequiresAnyPermissionAttribute ( ) : System
return System

RequiresAnyPermissionAttribute() public method

public RequiresAnyPermissionAttribute ( ApplyTo applyTo ) : System
applyTo ApplyTo
return System