CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Blazor/CslaPermissionRequirement.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CslaPermissionRequirement.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>CSLA permissions requirement</summary>
7//-----------------------------------------------------------------------
8using System;
9using Microsoft.AspNetCore.Authorization;
10
11namespace Csla.Blazor
12{
16 public class CslaPermissionRequirement : IAuthorizationRequirement
17 {
23 public CslaPermissionRequirement(Rules.AuthorizationActions action, Type objectType)
24 {
25 Action = action;
26 ObjectType = objectType;
27 }
28
32 public Rules.AuthorizationActions Action { get; set; }
36 public Type ObjectType { get; set; }
37 }
38}
Rules.AuthorizationActions Action
Gets or sets the authorization action
Type ObjectType
Gets or sets the business object type
CslaPermissionRequirement(Rules.AuthorizationActions action, Type objectType)
Creates an instance of the type.