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.
IBusinessRule.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="IBusinessRule.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Interface defining a business/validation</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Threading.Tasks;
11
12namespace Csla.Rules
13{
17 [Flags]
18 public enum RunModes
19 {
23 Default=0,
36 }
37
42 public interface IBusinessRuleBase
43 {
64 string RuleName { get; }
68 int Priority { get; }
84 bool IsAsync { get; }
85 }
86
92 {
97 void Execute(IRuleContext context);
98 }
99
105 {
111 }
112}
Maintains metadata about a property.
Interface defining a business/validation rule implementation.
Task ExecuteAsync(IRuleContext context)
Business or validation rule implementation.
Interface defining a business/validation rule implementation.
bool IsAsync
Gets a value indicating whether the Execute() method will run asynchronous code.
int Priority
Gets the rule priority.
bool ProvideTargetWhenAsync
Gets a value indicating that the Target property should be set even for an async rule (note that usin...
List< Csla.Core.IPropertyInfo > AffectedProperties
Gets a list of properties affected by this rule.
Csla.Core.IPropertyInfo PrimaryProperty
Gets the primary property affected by this rule.
List< Csla.Core.IPropertyInfo > InputProperties
Gets a list of secondary property values to be supplied to the rule when it is executed.
RunModes RunMode
Gets the context in which the rule is allowed to execute.
string RuleName
Gets a unique rule:// URI for the specific instance of the rule within the context of the business ob...
Interface defining a business/validation rule implementation.
void Execute(IRuleContext context)
Business or validation rule implementation.
Context information provided to a business rule when it is invoked.
Definition: IRuleContext.cs:20
RunModes
Flags enum to define when rule is allowed or denied to run
@ DenyCheckRules
Deny rule from running in CheckRules
@ DenyAsAffectedProperty
Deny rule from running as AffectedProperties from another rule.
@ Default
Default value, rule can run in any context
@ DenyOnServerSidePortal
Deny rule from running on serverside portal