Adds gateway support including SingalR

This commit is contained in:
Kamron Batman 2026-03-30 18:52:28 -07:00
parent c207c2c19f
commit fde85a5f7c
No known key found for this signature in database
GPG key ID: 7D81DF26D9A5D94A
13 changed files with 692 additions and 2 deletions

View file

@ -50,6 +50,7 @@ public static class Core
private static int _itemCount;
private static int _mobileCount;
public static EventLoopContext LoopContext { get; set; }
public static TaskScheduler LoopContextTaskScheduler { get; set; }
private static readonly Type[] _serialTypeArray = { typeof(Serial) };
@ -372,6 +373,7 @@ public static class Core
Thread = Thread.CurrentThread;
LoopContext = new EventLoopContext();
SynchronizationContext.SetSynchronizationContext(LoopContext);
LoopContextTaskScheduler = TaskScheduler.FromCurrentSynchronizationContext();
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
AppDomain.CurrentDomain.ProcessExit += CurrentDomain_ProcessExit;