09 2016 档案

摘要:/// /// 重试 /// public class RetryHandler : DelegatingHandler { private const int maxRetries = 3; /// /// 重试 ... 阅读全文
posted @ 2016-09-30 14:04 94cool 阅读(512) 评论(0) 推荐(0) 编辑
摘要:Process proc = Process.GetCurrentProcess(); Console.Write("专用工作集内存:"); Console.WriteLine(proc.PrivateMemorySize64 / 1024); Console.Write("工作集... 阅读全文
posted @ 2016-09-27 14:53 94cool 阅读(248) 评论(0) 推荐(0) 编辑
摘要:public class EntityBaseRepository : IEntityBaseRepository where T : class, IEntityBase, new() { private SchedulerContext _context; #region Properties public EntityBaseRepository(SchedulerContext ... 阅读全文
posted @ 2016-09-27 11:13 94cool 阅读(1528) 评论(0) 推荐(0) 编辑
摘要:1、AngularJs的controller中格式: var dateAsString = $filter('date')(item_date, "yyyy-MM-dd hh:mm:ss"); 注意: controller需要注入$filter 2、 AngularJs的views中格式: {{it 阅读全文
posted @ 2016-09-22 12:20 94cool 阅读(23204) 评论(0) 推荐(4) 编辑
摘要:IIS 6.0 from:https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/ea116535-8eb9-4c80-8b14-b34418dbfe42.mspx?mfr=true Procedures To enable HTTP Keep-Alives 1. In IIS Manager... 阅读全文
posted @ 2016-09-08 09:07 94cool 阅读(934) 评论(0) 推荐(0) 编辑
摘要:from:https://github.com/NLog/NLog/wiki/WebService-target Example config: Example API controller public class LogMeControll... 阅读全文
posted @ 2016-09-08 08:21 94cool 阅读(671) 评论(0) 推荐(0) 编辑
摘要:如何改变监听IP地址和端口?在这里找到了答案:https://github.com/aspnet/KestrelHttpSer... 把Program.cs加一行UseUrls代码如下: using System.IO; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Builder; namespace He... 阅读全文
posted @ 2016-09-07 16:06 94cool 阅读(2141) 评论(0) 推荐(0) 编辑
摘要:重新DBContext中OnModelCreating protected override void OnModelCreating(ModelBuilder modelBuilder) { //取基类=EntityBase var entityTypes = Assembly.GetEntryA 阅读全文
posted @ 2016-09-07 15:02 94cool 阅读(2130) 评论(0) 推荐(0) 编辑
摘要:from:http://www.cnblogs.com/akwwl/p/3232679.html 委托是一个类,它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递。事件是一种特殊的委托。 1.委托的声明 (1). delegate delegate我们常用到的一种声明 Delegate至少0个参数,至多32个参数,可以无返回值,也可以指定返回值类型... 阅读全文
posted @ 2016-09-07 09:00 94cool 阅读(7782) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示