Skip to content

Events registration #1154

@paneq

Description

@paneq

@andrzejkrzywda proposed the idea of registering events in RES. Syntax and API not known. Let's brainstorm.

class OrderPlaced
end

event_store.register(OrderPlaced) do |order_placed|
  # order_placed would be a proxy or something like it...
  order_placed.subscribe(to: [OrderSummaryHandler])
end

The benefit could be that RES would know about all possible events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions