摘要: Logging Application Block Hands-On Lab for Enterprise Library 企业库的日志应用程序块动手实验This walkthrough should act as your guide for learning about the Enterprise Library Logging Application Block and will allow you to practice employing its capabilities in various application contexts.这个预先安排好的过程将充当你学习企业库日志应用 阅读全文
posted @ 2014-01-27 23:43 Arnu 阅读(367) 评论(0) 推荐(0) 编辑
  2014年8月27日
摘要: Lab 1: Using a Unity Container 实验1:使用一个Unity容器Estimated time to complete this lab: 15 minutes 估计完成时间:15分钟 Introduction 介绍In this lab, you will practic... 阅读全文
posted @ 2014-08-27 16:34 Arnu 阅读(1434) 评论(0) 推荐(0) 编辑
  2014年2月13日
摘要: Lab 5: Create and Use a Custom Log Formatter 实验5:创建和使用自定义的日志格式器 In this lab, you will add a custom log formatter to a logging application. 在这个实验中,你将会添加一个自定义的日志格式器到日志程序中。 To begin this exercise, o... 阅读全文
posted @ 2014-02-13 23:47 Arnu 阅读(1167) 评论(0) 推荐(2) 编辑
摘要: Lab 4: Create and Use a Custom Trace Listener 创建和使用自定义跟踪监听器In this lab, you will build a custom Trace Listener to send formatted log entries to the Console standard output. You will then add this new Trace Listener to the EnoughPI application and monitor the log entries in real-time. 在这个实验中,你将会创建一个自 阅读全文
posted @ 2014-02-13 00:10 Arnu 阅读(682) 评论(0) 推荐(0) 编辑
  2014年2月10日
摘要: Lab 3: Reconfigure Logging at Runtime 实验3:在运行中重新设置日志配置In this lab, you will dynamically change the logging configuration while the application is running. This allows you to make temporary changes to your logging configuration to collect additional information without stopping and starting your appl 阅读全文
posted @ 2014-02-10 11:40 Arnu 阅读(837) 评论(0) 推荐(0) 编辑
摘要: Lab 2: Create and Use an Asynchronous Trace Listener 实验2:创建和使用异步Trace Listener In this lab, you will build an Asynchronous Trace Listener Wrapper to write log entries asynchronously to a disk file. Using the asynchronous wrapper changes the perceived time that it takes to log an entry. Control retur 阅读全文
posted @ 2014-02-10 11:11 Arnu 阅读(492) 评论(0) 推荐(0) 编辑
  2014年1月27日
摘要: Lab 1: Add Logging to an Application 实验1:给一个应用程序添加日志In this lab, you will add logging and tracing to an existing application. To begin this exercise, open the EnoughPI.sln file located in the ex01\begin folder. 在这个实验中,你将添加日志和追踪到一个已有的程序中。要开始这个练习,请打开在ex01\begin文件夹中的EnoughPI.sln文件。 Note: This exercise 阅读全文
posted @ 2014-01-27 23:59 Arnu 阅读(881) 评论(4) 推荐(1) 编辑
  2013年11月29日
摘要: 在上一篇博客中我遇到了一个问题,并且导致了我无法继续进行授权和验证。经过查阅资料和解决另外一个问题的过程,我突然想通了为什么CurrentPrincipal变了。并且经过验证后的确是我所理解的那样。下面说说过程。我在将petshop调试成功运行后,打算在另外一台机器上调用petshop的wcf服务,达到web服务器和业务服务器的物理分层效果。在另一台机器调用wcf服务的时候,提示:“调用方未由服务进行身份验证”。根据提示我知道是绑定的原因,这说明了绑定中配置了服务方需要验证调用方的身份。A大在使用绑定的时候用的都是ws2007HttpBinding。于是我继续查看A大的文章里面关于wcf安全的 阅读全文
posted @ 2013-11-29 16:29 Arnu 阅读(777) 评论(0) 推荐(0) 编辑
  2013年11月28日
摘要: 这个问题已解决,是绑定设置的问题,主要还是因为我自己没有深入理解WCF绑定的安全机制。在这篇博客里面我来说说怎么解决的。下载了Artech的wcf petshop源码(博文链接)并调试运行成功后,打算在其之上增加授权功能,但是遇到了问题。环境:windows8.1 企业版,VS2012, SQLExpress2008, IIS Express首先我在原文中求助A大关于通过RoleManager获取角色是否可行,得到了A大的答复可行,于是我就在原来的项目的Common中增加了一个静态类用于获取角色并设置到当前线程的CurrentPrincipal,和还原CurrentPrincipal。代码如下 阅读全文
posted @ 2013-11-28 18:11 Arnu 阅读(637) 评论(0) 推荐(0) 编辑