CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
IAuthorizationContext.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="IAuthorizationContext.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Interface defining an authorization context</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Security.Claims;
10using System.Security.Principal;
11using Csla.Core;
12
13namespace Csla.Rules
14{
19 public interface IAuthorizationContext
20 {
25
29 object Target { get; }
30
34 Type TargetType { get; }
35
41 bool HasPermission { get; set; }
42
46 object[] Criteria { get; }
47
52
57 }
58}
Provides consistent context information between the client and server DataPortal objects.
Defines a data portal service used to get an access to a client-side data portal instance.
Implemented by objects which provide context information to an authorization rule when it is invoked.
bool HasPermission
Gets or sets a value indicating whether the current user has permission to perform the requested acti...
IDataPortalFactory DataPortalFactory
Gets a data portal factory instance
IAuthorizationRule Rule
Gets the rule object.
object Target
Gets a reference to the target business object.
object[] Criteria
Gets an object which is the criteria specified in the data portal call, if any.
Type TargetType
Gets the type of the target business class.
Interface defining an authorization rule implementation.