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
As already discussed with Andrew the server events are raised twice even though I invoked them only once. Happened on StreamJsonRpc.2.4.48. To reproduce this issue use an abstract class which declared the events as abstract events. The server target inherited from this base class and overwrite these events. When you now invoke the event, it will raise twice on client side. Maybe these events were somehow added to the proxy twice due to reflection.
The text was updated successfully, but these errors were encountered:
Before this fix, when events were declared (as abstract or virtual) on a base class and overridden in the target object, we attached a handler to the event once for each time it was declared in the hierarchy, leading to multiple invocations on the client.
Fixesmicrosoft#481
AArnott
changed the title
events raised twice if events are declared as abstract events
Events raised twice on client if events are declared as abstract events on server
Aug 11, 2020
As already discussed with Andrew the server events are raised twice even though I invoked them only once. Happened on StreamJsonRpc.2.4.48. To reproduce this issue use an abstract class which declared the events as abstract events. The server target inherited from this base class and overwrite these events. When you now invoke the event, it will raise twice on client side. Maybe these events were somehow added to the proxy twice due to reflection.
The text was updated successfully, but these errors were encountered: