Skip to content

Pass on event params to subscriber #1

@s1na

Description

@s1na

An event could have various parameters. When one is emitted, and the invoke function of Registry is called, how do we pass these (unknown to registry) parameters, and later on how to pass them on to the subscriber?

Current approach: Registery invokes subscriber methods without any argument, which is very limiting

Possible directions:

  • Limiting approaches: No arguments, known arguments (only an array of bytes is allowed)
  • Serialization approaches: Use a lightweight serialization format (think json, but more compact)
  • Assembly: If possible, allow invoke being called with a variable number of arguments, and with the help of assembly, pass them to subscriber's method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions