博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2020年5月9日

摘要: ItemGroupBy(arr, key) { let newArr = [], types = {}, newItem, i, j, cur; for (i = 0, j = arr.length; i < j; i++) { cur = arr[i]; if (!(cur[key] in typ 阅读全文

posted @ 2020-05-09 11:26 筑筑 阅读(1952) 评论(0) 推荐(1) 编辑

摘要: Pool /// <summary> /// 与每个客户Socket相关联,进行Send和Receive投递时所需要的参数 /// </summary> public class IoContextPool { List<SocketAsyncEventArgs> pool; //为每一个Socke 阅读全文

posted @ 2020-05-09 11:00 筑筑 阅读(2500) 评论(0) 推荐(1) 编辑

摘要: public override int SaveChanges() { var entries = ChangeTracker.Entries().Where(x => x.State != EntityState.Unchanged).GroupBy(x => new { x.State, x.E 阅读全文

posted @ 2020-05-09 10:45 筑筑 阅读(530) 评论(0) 推荐(0) 编辑

摘要: using Quartz;public static class SchedulerProgram { public static void Start(IScheduler scheduler = null) { try { Assembly asm = typeof(SchedulerProgr 阅读全文

posted @ 2020-05-09 10:39 筑筑 阅读(486) 评论(1) 推荐(0) 编辑

摘要: using Autofac; using Autofac.Extras.Quartz; using Autofac.Integration.WebApi; using Quartz; using STAr.Enterprise.CRM.JobScheduler.Job; using System.C 阅读全文

posted @ 2020-05-09 10:37 筑筑 阅读(312) 评论(0) 推荐(0) 编辑

摘要: using System.Web.Http; using System.Web.Http.Cors; using System.Net.Http.Headers; namespace WebAPI { public static class WebApiConfig { public static 阅读全文

posted @ 2020-05-09 10:35 筑筑 阅读(380) 评论(0) 推荐(0) 编辑

摘要: public class Utils { #region 对象转换处理 /// <summary> /// 判断对象是否为Int32类型的数字 /// </summary> /// <param name="Expression"></param> /// <returns></returns> p 阅读全文

posted @ 2020-05-09 10:32 筑筑 阅读(479) 评论(0) 推荐(0) 编辑

摘要: public class ActiveDirectoryManager { public static DirectoryEntry GetDirectoryEntry() { DirectoryEntry entry = null; try { if (entry == null) { entry 阅读全文

posted @ 2020-05-09 10:31 筑筑 阅读(352) 评论(0) 推荐(0) 编辑

摘要: private static void GetExpression<T2>(Expression expression) { if (expression.NodeType != ExpressionType.Constant) { var _expression = expression as B 阅读全文

posted @ 2020-05-09 10:28 筑筑 阅读(831) 评论(0) 推荐(1) 编辑

摘要: public static class ExpressionHelp { /// <summary> /// Lambda表达式拼接 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="first"></param 阅读全文

posted @ 2020-05-09 10:26 筑筑 阅读(439) 评论(0) 推荐(1) 编辑