Class: Synapse::Command::SerializationOptimizingListener Private
- Inherits:
-
UnitOfWork::UnitOfWorkListener
- Object
- UnitOfWork::UnitOfWorkListener
- Synapse::Command::SerializationOptimizingListener
- Defined in:
- lib/synapse/command/interceptors/serialization.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Methods inherited from UnitOfWork::UnitOfWorkListener
#after_commit, #on_cleanup, #on_prepare_commit, #on_prepare_transaction_commit, #on_rollback, #on_start
Instance Method Details
#on_event_registered(unit, event) ⇒ EventMessage
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 29 30 31 32 |
# File 'lib/synapse/command/interceptors/serialization.rb', line 26 def on_event_registered(unit, event) if event.is_a? Domain::DomainEventMessage Serialization::SerializationAwareDomainEventMessage.decorate event else Serialization::SerializationAwareEventMessage.decorate event end end |