question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for multiple delegates unsubscription

See original GitHub issue

I had a glimpse to the source and it appear WeakEvent does not support multiple delegates unsubscription. Would it be possible to have that?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslevesquecommented, Apr 4, 2018

Sure, why not! I need to open my Git book on how to do a clean pull request though…

You don’t really need to read the book 😉 Here’s the short version:

  1. fork the repo
  2. clone your forked repo on your machine (git clone <your-repo-url>)
  3. create a new branch from master (git checkout <branch-name>)
  4. make your changes and commit them on that branch
  5. publish the branch (git push -u origin <branch-name>)
  6. open a PR (GitHub should show a button to do it after you published your branch)
0reactions
thomaslevesquecommented, Apr 4, 2018

I opened a new issue to track this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Unsubscribing from anonymous delegate event
The only way to do so safely is to keep a reference to the delegate and use that to unsubscribe, or change it...
Read more >
How to subscribe to and unsubscribe from events - C# ...
To unsubscribe in this scenario, go back to the code where you subscribe to the event, store the anonymous function in a delegate...
Read more >
Multiple Delegates on a Singleton Object
It works fine, but it can only work with a single class. If I have two classes that are both subscribed to the...
Read more >
Re: delegate one form to more than one recipient
I understand it is doable if the delegator only forward the form to one recipient. Can the delegator forward the form to multiple...
Read more >
Better/more elegant way of unsubscribing from event Action?
Hi all - I make extensive use of C# events (not to be confused with UnityEvents). For example, when one of my classes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found