Arc.React
    Preparing search index...

    Class ICommandScopeAbstract

    Defines the system for tracking commands and queries in a scope. This is an abstract class that can be extended to implement custom behavior.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get aggregatedExceptions(): readonly string[]

      Gets aggregated exception messages for this scope and all child scopes.

      Returns readonly string[]

    • get aggregatedValidationFailures(): readonly ValidationResult[]

      Gets aggregated validation failures for this scope and all child scopes.

      Returns readonly ValidationResult[]

    • get exceptions(): ReadonlyMap<ICommand, string[]>

      Gets the exception messages per command for this scope's commands.

      Returns ReadonlyMap<ICommand, string[]>

    • get hasChanges(): boolean

      Gets whether or not there are any changes in this scope or any child scopes.

      Returns boolean

    • get hasExceptions(): boolean

      Gets whether or not any commands in this scope or any child scopes have exceptions from the last execution.

      Returns boolean

    • get hasValidationFailures(): boolean

      Gets whether or not any commands in this scope or any child scopes have validation failures from the last execution.

      Returns boolean

    • get isPerforming(): boolean

      Gets whether or not any commands or queries are currently being performed in this scope or any child scopes.

      Returns boolean

    • get validationFailures(): ReadonlyMap<ICommand, ValidationResult[]>

      Gets the validation failures per command for this scope's commands.

      Returns ReadonlyMap<ICommand, ValidationResult[]>

    Methods

    • Add a command for tracking in the scope.

      Parameters

      • command: ICommand

        Command to add.

      Returns void

    • Add a query for tracking in the scope.

      Parameters

      • query: IQueryFor<unknown, unknown>

        Query to add.

      Returns void

    • Execute all commands with changes.

      Returns Promise<CommandResults>

      Command results per command that was executed.