Current section

Files

Jump to
commanded test process_managers support example_router.ex
Raw

test/process_managers/support/example_router.ex

defmodule Commanded.ProcessManagers.ExampleRouter do
@moduledoc false
use Commanded.Commands.Router
alias Commanded.ProcessManagers.{ExampleAggregate,ExampleCommandHandler}
alias Commanded.ProcessManagers.ExampleAggregate.Commands.{Error,Publish,Start,Stop}
dispatch [Start,Publish,Stop,Error],
to: ExampleCommandHandler,
aggregate: ExampleAggregate,
identity: :aggregate_uuid
end