代码改变世界

初学Service Broker

2012-07-24 15:36 by leo.wl2020, 571 阅读, 0 推荐, 收藏, 编辑
摘要:在软件开发领域,新的开发工具经常引入新的、可靠的成熟平台。SQL Server Service Broker就是这种技术,Service Broker带来了SQL Server 数据库平台的异步消息技术。 Enterprise Integration Patterns(由Gregor Hohpe和Bobby Wolf编著)是一本关于异步消息机制的最好的书之一。通过解释异步消息,该书将不同的消息设... 阅读全文

AutoWCFService心跳动态加载服务

2012-06-27 10:25 by leo.wl2020, 389 阅读, 0 推荐, 收藏, 编辑
摘要:public partial class AutoHostingService : ServiceBase { #region fields private static ServiceDispacher _dispacher; #endregion #region .ctor public AutoHostingService() { InitializeComponent(); InitializeWindsor(); } ... 阅读全文

Log4net简单使用

2012-06-26 21:42 by leo.wl2020, 671 阅读, 1 推荐, 收藏, 编辑
摘要:日志记录: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 阅读全文