예제 #1
0
 public PermissionsAuthorizationRequirement(PermissionAttributeType type, params Permission[] requiredPermissions)
 {
     Type = type;
     RequiredPermissions = requiredPermissions;
 }
 public RequiresPermissionAttribute(PermissionAttributeType type = PermissionAttributeType.AND, params Permission[] permissions)
     : base(typeof(RequiresPermissionAttributeImpl))
 {
     Arguments = new[] { new PermissionsAuthorizationRequirement(type, permissions) };
 }