philzhou

导航

上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

2011年3月7日 #

A Singleton Service Locator Pattern(转)

摘要: 原文 This is the third post of a series on the Service Locator pattern. In the first post I described how to create a basic service locator for your C# application, while in the second post I introduced lazy initialization of the services. We now add another piece to our puzzle, transforming the Servi 阅读全文

posted @ 2011-03-07 15:27 philzhou 阅读(413) 评论(0) 推荐(0)

Service Locator Pattern in C# with Lazy Initialization(转)

摘要: 原文 In my previous post Service Locator Pattern in C#: A Simple Example I introduced a fairly basic implementation of this pattern. In this post I will address one of the limitations of that implementation, introducing a form of lazy initialization. Defining Lazy InitializationLazy initialization imp 阅读全文

posted @ 2011-03-07 15:18 philzhou 阅读(606) 评论(0) 推荐(0)

Service Locator Pattern in C#: A Simple Example(转)

摘要: 原文 A Service Locator is a common design pattern that allows decoupling clients of services (described by a public interface) from the concrete class implementing those services. Martin Fowler has a gr... 阅读全文

posted @ 2011-03-07 14:53 philzhou 阅读(971) 评论(0) 推荐(0)

2011年3月2日 #

Raising Events, Event Handlers, and the Use of Delegates(转)

摘要: 原文来自http://www.csharp-corner.com/ Events When working with an IDE like Visual Studio, most events, particularly those involving Windows Forms applications, are nonlinear. That is, you might have to wait for a user to click a button or press a key to then respond to that event. In server applications 阅读全文

posted @ 2011-03-02 15:44 philzhou 阅读(256) 评论(1) 推荐(0)

2011年3月1日 #

Use Data Caching Techniques to Boost Performance and Ensure Synchronization(转)

摘要: 原文地址 Level of Difficulty 1 2 3 SUMMARY Performance is an important concern for any application, but becomes critical when the app is a Web Service accessed by thousands of clients simultaneously. One hardware approach to distributing Web Services requests evenly is a Web farm consisting of multiple 阅读全文

posted @ 2011-03-01 17:55 philzhou 阅读(324) 评论(0) 推荐(0)

EventHandler 泛型委托(转msdn)

摘要: 表示将处理事件的方法。泛型类型参数指定事件所生成的事件数据的类型。 命名空间:System程序集:mscorlib(在 mscorlib.dll 中)[SerializableAttribute] public delegate void EventHandler<TEventArgs> ( Object sender, TEventArgs e) where TEventArgs : Event... 阅读全文

posted @ 2011-03-01 10:36 philzhou 阅读(1096) 评论(0) 推荐(0)

2011年2月23日 #

使用 AsyncCallback 处理异步调用

摘要: 参考文章 原文 异步调用可以避免主线程受工作线程阻塞,即工作线程执行的过程中,主线程依然可以往下运行,不必等待工作线程完成。下面是一个简单的异步调用加法函数的例子。using System;using System.Threading;// the namespace for AsyncResult.using System.Runtime.Remoting.Messaging; namespace AsyncCallback{ // Delegate for add method. public delegate int TwoOperands(int a,int b); class Pro 阅读全文

posted @ 2011-02-23 14:39 philzhou 阅读(7600) 评论(1) 推荐(3)

2011年2月21日 #

使用工作流的一个IT服务管理系统

摘要: 目的:分角色的流程化的IT服务请求单处理系统,一个IT服务单会经过设计好的流程节点,以及相应的角色来处理。 流程图: 思路: IT服务流程中每个节点与某一角色相关联,而角色又与某一个IT服务人员关联,这样可以随时调整IT服务人员的角色,以及角色的责任节点,让系统更具灵活性。 自IT服务单的创建开始,一个IT服务的流程也随之展开,当进入一个节点时,创建一个书签,并为该节点的角色生成一条待办记录,... 阅读全文

posted @ 2011-02-21 16:08 philzhou 阅读(617) 评论(0) 推荐(0)

2011年1月26日 #

win7 提示 由于无法验证发布者,windows阻止控件安装 解决办法

摘要: 对于一些企业内部使用的OA产品,常常会需要安装一些ActiveX插件,而安装的时候经常会遇到由于无法验证发布者,windows阻止控件安装的问题,在网上有些解决办法就是,将internet的ActiveX方面的安全设置到最低标准,那个可能适合外网网站的情况,但是内网的网站依然会上述报错,于是把公司OA网站设为内部网站,然后调整intranet的ActiveX的安全设置,就OK了。 阅读全文

posted @ 2011-01-26 10:13 philzhou 阅读(50205) 评论(3) 推荐(0)

2011年1月18日 #

转摘:Aspnet mvc Html.Checkbox 处理

摘要: This post will explain how to get the value of a checkbox when a form is posted within the world of ASP.NET MVC. This post will explain this approach by first presenting a common problem and then showing you the recommended solution. You can just jump to the solution by clicking here.The Common Prob 阅读全文

posted @ 2011-01-18 17:34 philzhou 阅读(3300) 评论(2) 推荐(2)

上一页 1 ··· 5 6 7 8 9 10 11 12 下一页