李sir_Blog

博客园 首页 联系 订阅 管理

2011年7月12日

摘要: 1. 首先使用Configuration Console, 在blocks里面 Add Caching Setteings. 设置一些参数,比如Expiration Polling Frequency(seconds), 这个是指每隔指定的时间,cache block会检查那些过期的cache item,并且把他们删除掉。2. 配置好以后可以保存为一个config文件,然后把config内容拷贝到你的project中的配置文件中。 <configSections> <section name="cachingConfiguration" type=&quo 阅读全文
posted @ 2011-07-12 10:19 李sir 阅读(2058) 评论(1) 推荐(0)

摘要: (1):引用log4net(2):using log4net;(3):构造函数中static CoreLogging() { log4net.Config.XmlConfigurator.Configure(); }(4):private const string UnknownDeviceCategory = "UnknownDevice"; private const string AlarmCategory = "Alarm"; private const string GeneralCategory = "Trace"; pr 阅读全文
posted @ 2011-07-12 09:48 李sir 阅读(527) 评论(0) 推荐(0)