Import SocketIO code

This commit is contained in:
theolivenbaum
2022-07-14 16:53:54 +02:00
parent 73330185de
commit e2615a8dc1
46 changed files with 3182 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
using System;
namespace SocketIOClient.Extensions
{
internal static class EventHandlerExtensions
{
public static void TryInvoke<T>(this EventHandler<T> handler, object sender, T args)
{
handler?.Invoke(sender, args);
}
public static void TryInvoke(this EventHandler handler, object sender, EventArgs args)
{
handler?.Invoke(sender, args);
}
}
}