API Reference Trogon.Commanded v#0.39.0

Copy Markdown

Modules

Extend Commanded package. A swiss army knife for applications following Domain-Driven Design (DDD), Event Sourcing (ES), and Command and Query Responsibility Segregation (CQRS).

Defines "Aggregate" modules.

Stops the aggregate after a command, event or error.

Defines "Command" modules.

Defines a module as a "Command Handler". For more information about commands, please read the following

Command routing macro to allow configuration of each command to its command handler.

Eventual consistency policy for projection queries with read-after-write guarantees.

Consistency policy that returns only if projection.version == required_version. Fails immediately with VersionMismatchError if version has moved past required.

Consistency policy that retries until projection.version >= required_version.

Consistency check timed out waiting for the required version.

Requested version does not match the current version.

Wraps query result data with its version number.

Defines "Entity" modules.

Defines an Enum type module.

Defines "Event" modules.

A JSONB serializer based on events defined by Trogon.Commanded.Event.

A Swiss Army Knife Helper Module.

A module for dealing IDs.

Macro for defining type-safe, domain-specific object IDs.

Raised when an ObjectId value is invalid.

Protocol for encoding and decoding Protobuf structs.

Defines a module as a "Query Handler". For more information about queries, please read the following

This module helps with test cases for testing aggregate states, and command handlers.

Implements Commanded.EventStore.TypeProvider behavior. Using macros to generate the behavior.

Discriminated union type that can hold any of multiple Trogon.Commanded.ObjectId types.

Defines "Value Object" modules.