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.
AddObjectAuthorizationRulesContext.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="IAddObjectAuthorizationRulesContext.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Context for the AddObjectAuthorizationRulesContext method.</summary>
7//-----------------------------------------------------------------------
9
10namespace Csla.Rules
11{
16 {
22 {
23 ApplicationContext = applicationContext;
24 }
25
29 public ApplicationContext ApplicationContext { get; private set; }
30
34 public IDataPortalFactory DataPortalFactory => ApplicationContext.CurrentServiceProvider.GetRequiredService<IDataPortalFactory>();
35
40 }
41}
Provides consistent context information between the client and server DataPortal objects.
string? RuleSet
Gets or sets the RuleSet name to use for static HasPermission calls.
Context for the AddObjectAuthorizationRulesContext method.
IDataPortalFactory DataPortalFactory
Gets a data portal factory instance
AddObjectAuthorizationRulesContext(ApplicationContext applicationContext)
Creates an instance of the type.
Defines a data portal service used to get an access to a client-side data portal instance.
Context for the AddObjectAuthorizationRulesContext method.