module ActiveDomain::CommandProcessor

Protected Instance Methods

event(event) click to toggle source
# File lib/active_domain/command_processor.rb, line 20
def event(event)
  store event
  publish event
  invoke event
  event.store_infos[:id]
end

Private Instance Methods

invoke(event) click to toggle source
# File lib/active_domain/command_processor.rb, line 29
def invoke(event)
  ProjectionRegistry.invoke event
end
publish(event) click to toggle source
# File lib/active_domain/command_processor.rb, line 37
def publish(event)
  ActiveEvent::EventServer.publish event
end
store(event) click to toggle source
# File lib/active_domain/command_processor.rb, line 33
def store(event)
  EventRepository.store event
end