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.
An event could have various parameters. When one is emitted, and the
invokefunction ofRegistryis 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:
invokebeing called with a variable number of arguments, and with the help of assembly, pass them to subscriber's method.