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

Only raise events from RPC targets once #520

Merged
1 commit merged into from
Aug 12, 2020
Merged

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Aug 11, 2020

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.

Fixes #481

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.

Fixes microsoft#481
@AArnott AArnott added this to the v2.6 milestone Aug 11, 2020
@AArnott AArnott requested a review from milopezc August 11, 2020 22:42
@AArnott AArnott self-assigned this Aug 11, 2020
@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2020

Codecov Report

Merging #520 into master will decrease coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #520      +/-   ##
==========================================
- Coverage   89.21%   89.12%   -0.09%     
==========================================
  Files          51       51              
  Lines        4071     4075       +4     
==========================================
  Hits         3632     3632              
- Misses        439      443       +4     
Impacted Files Coverage Δ
src/StreamJsonRpc/JsonRpc.cs 92.50% <100.00%> (-0.30%) ⬇️
src/StreamJsonRpc/MessageHandlerBase.cs 97.56% <0.00%> (-1.22%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 516c9ea...8e84969. Read the comment docs.

@ghost ghost merged commit c112357 into microsoft:master Aug 12, 2020
@AArnott AArnott deleted the fix481 branch August 12, 2020 22:34
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Events raised twice on client if events are declared as abstract events on server
3 participants