Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass on event params to subscriber #1

Open
s1na opened this issue Aug 20, 2018 · 0 comments
Open

Pass on event params to subscriber #1

s1na opened this issue Aug 20, 2018 · 0 comments

Comments

@s1na
Copy link
Member

s1na commented Aug 20, 2018

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant