Table of Contents

Class AsyncValidationRule<TEntityView>

Namespace
GroupeIsa.Neos.Application.Rules.ValidationRules
Assembly
GroupeIsa.Neos.Application.Abstractions.dll

Represents a validation rule.

public abstract class AsyncValidationRule<TEntityView> : IValidationRule<TEntityView>, IValidationRule where TEntityView : IEntityView

Type Parameters

TEntityView

The entity view type.

Inheritance
AsyncValidationRule<TEntityView>
Implements
IValidationRule<TEntityView>
Derived
Inherited Members

Constructors

AsyncValidationRule(IValidationRule<TEntityView>?)

Initializes a new instance of the AsyncValidationRule<TEntityView> class.

protected AsyncValidationRule(IValidationRule<TEntityView>? baseImplementation = null)

Parameters

baseImplementation IValidationRule<TEntityView>

Base implementation.

Properties

Arguments

Gets or sets the arguments.

public IValidationRuleArguments Arguments { get; set; }

Property Value

IValidationRuleArguments

Item

Gets or sets the item.

public TEntityView Item { get; set; }

Property Value

TEntityView

Methods

Error(string)

Returns an error.

protected IValidationRuleResult Error(string message)

Parameters

message string

The message.

Returns

IValidationRuleResult

The result.

ExecuteAsync()

Executes the validation rule.

public abstract Task<IValidationRuleResult> ExecuteAsync()

Returns

Task<IValidationRuleResult>

A task that represents the result of the validation rule.

Success()

Returns a success.

protected IValidationRuleResult Success()

Returns

IValidationRuleResult

The result.