C# Class Frapid.DbPolicy.DbAccess

Inheritance: IDbAccess
Mostra file Open project: frapid/frapid

Public Methods

Method Description
ValidateAsync ( AccessTypeEnum type, long loginId, string database, bool noException ) : System.Threading.Tasks.Task

Validates application user access rights to execute the function.

Method Details

ValidateAsync() public method

Validates application user access rights to execute the function.
public ValidateAsync ( AccessTypeEnum type, long loginId, string database, bool noException ) : System.Threading.Tasks.Task
type AccessTypeEnum The access type being validated.
loginId long The login ID of application user making the request.
database string The name of the database on which policy is being validated on.
noException bool /// If this is switched off, UnauthorizedException is not thrown even when the caller does not /// have access rights to this function. ///
return System.Threading.Tasks.Task