Skip to content

Commit cf00a45

Browse files
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 null
1 parent 704f24b commit cf00a45

8 files changed

+1580
-5679
lines changed

CefSharp/CefSharp.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
<Compile Include="DevTools\DevToolsClient.cs" />
8989
<Compile Include="DevTools\DevToolsClient.Generated.cs" />
9090
<Compile Include="DevTools\DevToolsClientException.cs" />
91-
<Compile Include="DevTools\DevToolsEventHandlerRegistration.cs" />
9291
<Compile Include="DevTools\DevToolsMethodResponseContext.cs" />
9392
<Compile Include="DevTools\DevToolsDomainBase.cs" />
9493
<Compile Include="DevTools\DevToolsDomainEntityBase.cs" />
@@ -97,8 +96,10 @@
9796
<Compile Include="DevTools\DevToolsDomainResponseBase.cs" />
9897
<Compile Include="DevTools\DevToolsEventArgs.cs" />
9998
<Compile Include="DevTools\DevToolsMethodResponse.cs" />
99+
<Compile Include="DevTools\EventProxy.cs" />
100100
<Compile Include="DevTools\Headers.cs" />
101101
<Compile Include="DevTools\IDevToolsClient.cs" />
102+
<Compile Include="DevTools\IEventProxy.cs" />
102103
<Compile Include="DevTools\MemoryDumpConfig.cs" />
103104
<Compile Include="Enums\CompositionUnderlineStyle.cs" />
104105
<Compile Include="Enums\CookiePriority.cs" />

0 commit comments

Comments
 (0)