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>();

 

 

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

或者存储临时结果.

 

posted @ 2016-03-23 10:06  Ender.Lu  阅读(240)  评论(0编辑  收藏  举报