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.
BusinessRuleAsync.cs
Go to the documentation of this file.
1
//-----------------------------------------------------------------------
2
// <copyright file="BusinessRuleAsync.cs" company="Marimer LLC">
3
// Copyright (c) Marimer LLC. All rights reserved.
4
// Website: https://cslanet.com
5
// </copyright>
6
// <summary>Base class used to create business and validation</summary>
7
//-----------------------------------------------------------------------
8
using
System;
9
using
System.Collections.Generic;
10
using
System.Linq;
11
using
System.Text;
12
using
System.Threading.Tasks;
13
using
Csla
.
Properties
;
14
15
namespace
Csla.Rules
16
{
21
public
abstract
class
BusinessRuleAsync
:
BusinessRuleBase
,
IBusinessRuleAsync
22
{
27
public
override
bool
IsAsync
28
{
29
get
{
return
true
; }
30
protected
set
{ }
31
}
32
37
protected
BusinessRuleAsync
()
38
: this(null)
39
{ }
40
46
protected
BusinessRuleAsync
(
Csla
.
Core
.
IPropertyInfo
primaryProperty)
47
: base(primaryProperty)
48
{ }
49
54
protected
virtual
Task
ExecuteAsync
(
IRuleContext
context)
55
{
56
return
Task.CompletedTask;
57
}
58
59
Task
IBusinessRuleAsync
.
ExecuteAsync
(
IRuleContext
context)
60
{
61
PropertiesLocked
=
true
;
62
return
ExecuteAsync
(context);
63
}
64
}
65
}
Csla.Rules.BusinessRuleAsync
Base class used to create async business and validation rules.
Definition:
BusinessRuleAsync.cs:22
Csla.Rules.BusinessRuleAsync.BusinessRuleAsync
BusinessRuleAsync()
Creates an instance of the rule that applies to a business object as a whole.
Definition:
BusinessRuleAsync.cs:37
Csla.Rules.BusinessRuleAsync.BusinessRuleAsync
BusinessRuleAsync(Csla.Core.IPropertyInfo primaryProperty)
Creates an instance of the rule that applies to a specfic property.
Definition:
BusinessRuleAsync.cs:46
Csla.Rules.BusinessRuleAsync.IsAsync
override bool IsAsync
Gets a value indicating whether the rule will run on a background thread.
Definition:
BusinessRuleAsync.cs:28
Csla.Rules.BusinessRuleAsync.ExecuteAsync
virtual Task ExecuteAsync(IRuleContext context)
Business or validation rule implementation.
Definition:
BusinessRuleAsync.cs:54
Csla.Rules.BusinessRuleBase
Base class used to create business and validation rules.
Definition:
BusinessRuleBase.cs:19
Csla.Rules.BusinessRuleBase.PropertiesLocked
bool PropertiesLocked
Gets or sets a value indicating whether property values should be locked because an async operation i...
Definition:
BusinessRuleBase.cs:31
Csla.Core.IPropertyInfo
Maintains metadata about a property.
Definition:
Csla/Core/IPropertyInfo.cs:16
Csla.Rules.IBusinessRuleAsync
Interface defining a business/validation rule implementation.
Definition:
IBusinessRule.cs:105
Csla.Rules.IBusinessRuleAsync.ExecuteAsync
Task ExecuteAsync(IRuleContext context)
Business or validation rule implementation.
Csla.Rules.IRuleContext
Context information provided to a business rule when it is invoked.
Definition:
IRuleContext.cs:20
Csla.Core
Definition:
AddedNewEventArgs.cs:11
Csla.Properties
Definition:
Resources.Designer.cs:11
Csla.Rules
Definition:
AuthorizationActions.cs:14
Csla
Definition:
Csla.AspNetCore.Shared/ApplicationContextManager.cs:16
Generated by
1.9.2