signalR的一些细节

获取根目录通过AppDomain.CurrentDomain.BaseDirectory

因为不能直接获取session ,使用的替代方案如下

private static Dictionary<string,bool> isCancel = new System.Collections.Generic.Dictionary<string,bool>();

private static Dictionary<string, string> dicSql = new System.Collections.Generic.Dictionary<string, string>();

设置变量用于暂停后台正在执行的任务

或者存储临时结果.

原文地址:https://www.cnblogs.com/coolyylu/p/5309868.html