摘要:
日志记录:static log4net.ILog _log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)_log.Error(exception);_log.InfoFormat("test:{0}", s.ToString())Log4Net.config:<?xml version="1.0"?> <configuration> <configSections> <se 阅读全文
阅读排行榜
mdeditor
2013-09-11 15:26 by leo.wl2020, 606 阅读, 收藏,
摘要:
*在线地址:*http://ghosertblog.github.io/mdeditor/# Markdown 语法简明手册### 1. 使用 * 和 ** 表示斜体和粗体示例:这是 *斜体*,这是 **粗体**。### 2. 使用 === 表示一级标题,使用 --- 表示二级标题示例:这是一个一级标题============================这是一个二级标题--------------------------------------------------### 这是一个三级标题你也可以选择在行首加井号表示不同级别的标题,例如:# H1, ## H2, ### H3。### 3 阅读全文
初学Service Broker
2012-07-24 15:36 by leo.wl2020, 599 阅读, 收藏,
摘要:
在软件开发领域,新的开发工具经常引入新的、可靠的成熟平台。SQL Server Service Broker就是这种技术,Service Broker带来了SQL Server 数据库平台的异步消息技术。 Enterprise Integration Patterns(由Gregor Hohpe和Bobby Wolf编著)是一本关于异步消息机制的最好的书之一。通过解释异步消息,该书将不同的消息设... 阅读全文
AutoWCFService心跳动态加载服务
2012-06-27 10:25 by leo.wl2020, 402 阅读, 收藏,
摘要:
public partial class AutoHostingService : ServiceBase { #region fields private static ServiceDispacher _dispacher; #endregion #region .ctor public AutoHostingService() { InitializeComponent(); InitializeWindsor(); } ... 阅读全文
程序员必须遵守的编程原则
2012-07-25 14:45 by leo.wl2020, 380 阅读, 收藏,
摘要:
Ø 不要自我重复(DRY - Don’t repeat yourself)—— 这也许是在编程开发中最最基本的一个信条,就是要告诉你不要出现重复的代码。我们很多的编程结构之所以存在,就是为了帮助我们消除重复(例如,循环语句,函数,类,等等)。一旦程序里开始有重复现象的出现(例如很长的表达式、一大堆的语句,但都是为了表达相同的概念),你就需要对代码进行一次新的提炼,抽象。 Ø 提炼原则(Abstr... 阅读全文
浙公网安备 33010602011771号