会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吃喝玩乐
博客园
首页
新随笔
联系
管理
订阅
09 2016 档案
Net中HttpClient 重试
摘要:/// /// 重试 /// public class RetryHandler : DelegatingHandler { private const int maxRetries = 3; /// /// 重试 ...
阅读全文
posted @
2016-09-30 14:04
94cool
阅读(523)
评论(0)
推荐(0)
C# 内存信息
摘要:Process proc = Process.GetCurrentProcess(); Console.Write("专用工作集内存:"); Console.WriteLine(proc.PrivateMemorySize64 / 1024); Console.Write("工作集...
阅读全文
posted @
2016-09-27 14:53
94cool
阅读(256)
评论(0)
推荐(0)
EntityFramework Core 封装
摘要:public class EntityBaseRepository : IEntityBaseRepository where T : class, IEntityBase, new() { private SchedulerContext _context; #region Properties public EntityBaseRepository(SchedulerContext ...
阅读全文
posted @
2016-09-27 11:13
94cool
阅读(1544)
评论(0)
推荐(0)
AngularJs 时间格式化处理
摘要: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
阅读(23232)
评论(0)
推荐(4)
IIS Enabling HTTP Keep-Alives
摘要: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
阅读(952)
评论(0)
推荐(0)
NLog 通过http保存日志
摘要:from:https://github.com/NLog/NLog/wiki/WebService-target Example config: Example API controller public class LogMeControll...
阅读全文
posted @
2016-09-08 08:21
94cool
阅读(684)
评论(0)
推荐(0)
Vs 2015 调试ASP.NET Core修改监听端口
摘要:如何改变监听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
阅读(2156)
评论(0)
推荐(0)
Entityframework core 动态添加模型实体
摘要:重新DBContext中OnModelCreating protected override void OnModelCreating(ModelBuilder modelBuilder) { //取基类=EntityBase var entityTypes = Assembly.GetEntryA
阅读全文
posted @
2016-09-07 15:02
94cool
阅读(2144)
评论(0)
推荐(0)
C#委托的介绍(delegate、Action、Func、predicate)
摘要:from:http://www.cnblogs.com/akwwl/p/3232679.html 委托是一个类,它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递。事件是一种特殊的委托。 1.委托的声明 (1). delegate delegate我们常用到的一种声明 Delegate至少0个参数,至多32个参数,可以无返回值,也可以指定返回值类型...
阅读全文
posted @
2016-09-07 09:00
94cool
阅读(7802)
评论(0)
推荐(0)
公告