Adds gateway support including SingalR
This commit is contained in:
parent
c207c2c19f
commit
fde85a5f7c
13 changed files with 692 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue