-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
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
invokebeing called with a variable number of arguments, and with the help of assembly, pass them to subscriber's method.