Skip to content

Add method to easily register "reply" events #28

@tupini07

Description

@tupini07

Currently, we need to use the RegisterLocal method to register a reply event, as well as the EventManagerConstants.ReplyPrefix to fill the name of the event. Since this constant is internal and we want to avoid unnecessary duplication we should implement a wrapper method that accepts the name of the event and automatically registers it as a reply callback. An idea for this implementation:

RegisterLocalReply(eventName, callback) {
  RegisterLocal(
    EventManagerConstants.ReplyPrefix + eventName,
    callback
  );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions