Wraps a handler with cross-cutting logic (logging, timing, validation, etc.).
Behaviors are typed to CqrsRequest so they can read request.type/request.data type-safely without any.
CqrsRequest
request.type
request.data
any
0.1.0
The request type (must extend CqrsRequest)
The result type
Wraps the next handler in the pipeline.
The request being handled
The next handler (or terminal handler)
The result (sync or async)
Wraps a handler with cross-cutting logic (logging, timing, validation, etc.).
Behaviors are typed to
CqrsRequestso they can readrequest.type/request.datatype-safely withoutany.Since
0.1.0