Table of Contents

Class CollectionVariableRootValidationEvent<TKey, TElement, TValidationResult>

Namespace
LfrlAnvil.Reactive.State.Events
Assembly
LfrlAnvil.Reactive.State.dll

Represents a generic variable change event emitted by an IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult>.

public class CollectionVariableRootValidationEvent<TKey, TElement, TValidationResult> : ICollectionVariableRootValidationEvent<TValidationResult>, ICollectionVariableRootValidationEvent, IVariableNodeEvent where TKey : notnull where TElement : VariableNode

Type Parameters

TKey

Key type.

TElement

Element type.

TValidationResult

Validation result type.

Inheritance
CollectionVariableRootValidationEvent<TKey, TElement, TValidationResult>
Implements
Inherited Members

Constructors

CollectionVariableRootValidationEvent(IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult>, VariableState, Chain<TValidationResult>, Chain<TValidationResult>, CollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>?, IVariableNodeEvent?)

public CollectionVariableRootValidationEvent(IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult> variable, VariableState previousState, Chain<TValidationResult> previousErrors, Chain<TValidationResult> previousWarnings, CollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>? associatedChange, IVariableNodeEvent? sourceEvent)

Parameters

variable IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult>

Variable node that emitted this event.

previousState VariableState

Previous state of the Variable.

previousErrors Chain<TValidationResult>

Collection of validation errors before the change.

previousWarnings Chain<TValidationResult>

Collection of validation warnings before the change.

associatedChange CollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>

ICollectionVariableRootChangeEvent instance associated with this validation event.

sourceEvent IVariableNodeEvent

Source child node event.

Properties

AssociatedChange

ICollectionVariableRootChangeEvent instance associated with this validation event.

public CollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>? AssociatedChange { get; }

Property Value

CollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>

NewErrors

Collection of validation errors after the change.

public Chain<TValidationResult> NewErrors { get; }

Property Value

Chain<TValidationResult>

NewState

Current state of the Variable.

public VariableState NewState { get; }

Property Value

VariableState

NewWarnings

Collection of validation warnings after the change.

public Chain<TValidationResult> NewWarnings { get; }

Property Value

Chain<TValidationResult>

PreviousErrors

Collection of validation errors before the change.

public Chain<TValidationResult> PreviousErrors { get; }

Property Value

Chain<TValidationResult>

PreviousState

Previous state of the Variable.

public VariableState PreviousState { get; }

Property Value

VariableState

PreviousWarnings

Collection of validation warnings before the change.

public Chain<TValidationResult> PreviousWarnings { get; }

Property Value

Chain<TValidationResult>

SourceEvent

Source child node event.

public IVariableNodeEvent? SourceEvent { get; }

Property Value

IVariableNodeEvent

Variable

Variable node that emitted this event.

public IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult> Variable { get; }

Property Value

IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult>