Commit cf00a45
authored
DevTools Client - Simplify Strongly Typed Event handling (#3777)
* DevTools Client - Simplify Strongly Typed Event handling
Now it's only possible to register one System.Type per event.
- Remove RegisterEventHandler
- Add AddEventHandler and RemoveEventHandler
- Change constraint from DevToolsDomainEventArgsBase to EventArgs
#3666
* Changes were based on https://github.com/CefNet/CefNet.DevTools.Protocol
Add links to original source files
* Reset stream position
* AddEventHandler - Use GetOrAdd for Thread safety
* AddEventHandler - Fix double event handler registration for first call
* RemoveEventHandler - Remove IEventProxy when handler null1 parent 704f24b commit cf00a45
8 files changed
Lines changed: 1580 additions & 5679 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
0 commit comments