Allen Wang

专注web开发
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

[WCSF]Web Client Software Factory

Posted on 2007-11-10 11:13  AllenWang.NET  阅读(7418)  评论(0编辑  收藏  举报

Web客户端软件工厂是Microsoft Patterns & Practices Team开发的项目,目的是为了帮助用户使用Microsoft平台建立高质量的企业级应用。这个项目提供了可以扩展和自定义的架构,通过提供Software Factory来帮助用户开发基于Web的解决方案,解决最常见和最重要的一些技术问题。

WCSF解决的典型问题:
1. 如何组织解决方案
2. 如何测试Web应用程序(主要是单元测试)
3. 如何管理不同的环境(开发、测试、产品环境等)
4. 如何隐藏技术的复杂度
5. 如何与各种不同后台系统的集成
6. 如何构建容易troubleshoot的应用
7. 如何增加security, availability, reliability

WCSF提供的部件:
1. Application Blocks (Enterprise Library blocks and others)
2. Patterns
3. Hands-On-Labs
4. Visual Studio Automation (templates, wizards, etc)
5. Architecture Documentation
6. Sample applications based on all of the above


值得一提的是,WCSF结合了Microsoft平台的多种技术,包括ASP.NET 2.0,Atlas,Microsoft Workflow Foundations(PageFlow),SharePoint等等。可以看到WCSF已经覆盖了从客户端到服务器端的整套的解决方案。

Patterns for Web Client Applications
The factory documentation introduces the following patterns that provide solutions to common web client design, implementation, or deployment challenges:

1) View-Presenter (VP)
2) Dependency Injection
3) Service Locator
4) Application Controller

Customizing the Web Client Software Factory



参考链接
patterns & practices - Web Client Software Factory - Home at codeplex WCSF Can be download
patterns & practices - Web Client Software Factory - Home at MSDN WCSF Can be download
Guidance Automation Extensions and Guidance Automation Toolkit GAX & GAT Can be download.
Presentation: Vision & Scope of Web Client Software Factory
[MSDN]Software Factoies 
      Mobile Client Software Factory
      Smart Client Software Factory
      Web Client Software Factory
      Web Service Software Factory

WCSF的安装步骤
1) Install VS.NET 2005 (注意C#,VB安装选项都要选中,不然WCSF在创建Solution的时候会报错)
2) Install the Guidance Automation Extensions.
3) Install the Guidance Automation Toolkit.
4)
Install .NET Framework 3.0 and Windows Workflow Foundation. 
5) Install the Web Client Software Factory.

Model View Presenter
http://c2.com/cgi/wiki?ModelViewPresenter
MVC vs. MVP
Martin Fowler's soon-to-be-published overview of MVP 
MVP vs MVC 对两者的不同解释得比较清楚
[MSDN]设计模式:Model View Presenter 可以结合其中提供的Sample深入了解MVP Pattern
[CodeProject]Model View Presenter with ASP.NET 有Sample提供参考