You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present if you try to subscribe to a MessageChannel with the incorrect method signature you'll receive an InvalidProgramException: JIT Compiler encountered an internal limitation.
The MessageChannel could check when an event/method is registered that the method matches the form required. e.g. void EventHandler(object sender, EventArgs args).
A further extension to this would be to record the first method/event signature registered for a channel and to check all subsequent registrations match the first and throw a descriptive ActivationException if not.
N.B when compiled with NO_LCG the reflection based transport will throw a more informative exception about the method signatures having different numbers of parameters.
The text was updated successfully, but these errors were encountered:
At present if you try to subscribe to a MessageChannel with the incorrect method signature you'll receive an InvalidProgramException: JIT Compiler encountered an internal limitation.
The MessageChannel could check when an event/method is registered that the method matches the form required. e.g. void EventHandler(object sender, EventArgs args).
A further extension to this would be to record the first method/event signature registered for a channel and to check all subsequent registrations match the first and throw a descriptive ActivationException if not.
N.B when compiled with NO_LCG the reflection based transport will throw a more informative exception about the method signatures having different numbers of parameters.
The text was updated successfully, but these errors were encountered: