예제 #1
0
 public RolePermissionController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Infrastructure.Crosscutting.Authorize.IRoleService role,
     Miaow.Infrastructure.Crosscutting.Authorize.IMvcActionService mvcAction,
     Miaow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass,
     Miaow.Infrastructure.Crosscutting.Authorize.IMvcControllerService mvcController,
     Miaow.Infrastructure.Crosscutting.Authorize.IMvcRolePermissionService rolePermission)
 {
     if (role == null)
     {
         throw new ArgumentNullException("roleService is null");
     }
     if (mvcAction == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcControllerClass == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcController == null)
     {
         throw new ArgumentNullException("mvcControllerService is null");
     }
     if (rolePermission == null)
     {
         throw new ArgumentNullException("rolePermissionService is null");
     }
     roleService = role;
     mvcActionService = mvcAction;
     mvcControllerClassService = mvcControllerClass;
     mvcControllerService = mvcController;
     mvcRolePermissionService = rolePermission;
 }
예제 #2
0
 public ControllerClassController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass)
 {
     if (mvcControllerClass == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     mvcControllerClassService = mvcControllerClass;
 }