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