Esempio n. 1
0
 public string ReadRoleBasedSecuredFile(string path, IRoleHandler handler)
 {
     if (handler.IsAuthorized())
     {
         return(File.ReadAllText(path));
     }
     return(null);
 }
Esempio n. 2
0
 public RoleController(IRoleHandler roleService)
 {
     _roleService = roleService;
 }
Esempio n. 3
0
 public RoleController(IRoleHandler roleHandler)
 {
     this.roleHandler = roleHandler;
 }