Table of Contents

Interface ITrinityAction

Namespace
AbanoubNassem.Trinity.Components.Interfaces
Assembly
AbanoubNassem.Trinity.dll

Represents an action that can be performed.

public interface ITrinityAction : ITrinityComponent
Inherited Members

Properties

ActionName

Gets the name of the action.

string ActionName { get; init; }

Property Value

string

Fields

Gets the fields of the form.

Dictionary<string, object>? Fields { get; }

Property Value

Dictionary<string, object>

The fields of the form.

Form

Gets or sets the form associated with the action.

[JsonIgnore]
TrinityForm? Form { get; set; }

Property Value

TrinityForm

Methods

Handle(Dictionary<string, object?>, IReadOnlyCollection<IDictionary<string, object?>>)

Handles the action and returns the result of the action.

Task<List<TrinityActionResult>> Handle(Dictionary<string, object?> form, IReadOnlyCollection<IDictionary<string, object?>> records)

Parameters

form Dictionary<string, object>

The form data associated with the action.

records IReadOnlyCollection<IDictionary<string, object>>

The records associated with the action.

Returns

Task<List<TrinityActionResult>>

The result of the action.