minos.cqrs.handlers module¶
- class minos.cqrs.handlers.PreEventHandler[source]¶
Bases:
object
Pre Event Handler class.
- async classmethod handle(diff, resolve_references=True, **kwargs)[source]¶
Handle ModelRef resolution for Events.
- Parameters
diff (~T) – The instance containing
ModelRef
instances.resolve_references (
bool
) – IfTrue
the resolution is performed, otherwise it is skipped.kwargs – Additional named arguments.
- Return type
~T
- Returns
The original instance with the
ModelRef
references already resolved.