【1】英文目录 Contents:
@H_404_19@
WCF Best Practice
About Brian
Agenda
Service DeFinition
Service Exception Handling
Service Security
Service Hosting
Self Host Code
Client Proxy Classes
Client Proxy Management
Client Exception Management
Data Contracts
SOAP vs. REST @H_404_19@
About Brian
Agenda
Service DeFinition
Service Exception Handling
Service Security
Service Hosting
Self Host Code
Client Proxy Classes
Client Proxy Management
Client Exception Management
Data Contracts
SOAP vs. REST @H_404_19@
@H_404_19@
【2】中文目录:
@H_404_19@
WCF 最佳实践
关于Brian
大纲
服务定义
服务异常处理
服务安全
服务托管
自托管代码
客户端代理类
客户端代理管理
客户端异常管理
数据契约
SOAP和REST @H_404_19@
关于Brian
大纲
服务定义
服务异常处理
服务安全
服务托管
自托管代码
客户端代理类
客户端代理管理
客户端异常管理
数据契约
SOAP和REST @H_404_19@
@H_404_19@
【3】英文名称:《WCF Best Practice》
中文名称:《WCF最佳实践》
【4】About Brian
关于Brian
lBrian Noyes
@H_404_19@
lChief Architect,IDesign
@H_404_19@
IDesign
首席架构师
@H_404_19@
l[email protected]
@H_404_19@
lMicrosoft Regional Director
@H_404_19@
微软区域总监
@H_404_19@
lMicrosoft MVP Connected Systems
@H_404_19@
微软MVP
@H_404_19@
l
Publishing
@H_404_19@
出版
@H_404_19@
Ø
Developing Applications with Windows Workflow Foundation,
@H_404_19@
Ø
LiveLessons training DVD,June 2007
@H_404_19@
Ø
Smart Client Deployment with ClickOnce,Addison Wesley,January 2007
@H_404_19@
Ø
Data Binding in Windows Forms 2.0,italic">Addison Wesley,January 2006
@H_404_19@
Ø
MSDN Magazine,MSDN Online,italic">CoDe Magazine,The Server Side .NET,italic">asp.netPRO,Visual Studio Magazine
@H_404_19@
l
Speaking
@H_404_19@
讲座
@H_404_19@
Ø
Microsoft TechEd US,Europe,Malaysia,italic">Visual Studio Connections,DevTeach,italic">INETA Speakers Bureau,MSDN Webcasts
@H_404_19@
ØE-mail: [email protected]
@H_404_19@
ØBlog: http://briannoyes.net
@H_404_19@
@H_404_19@
【5】Agenda
大纲
lService Best Practices
@H_404_19@
服务最佳实践
@H_404_19@
lClient Best Practices
@H_404_19@
客户端最佳实践
@H_404_19@
lData Contracts
@H_404_19@
数据契约最佳实践
@H_404_19@
lSOAP vs. REST
@H_404_19@
SOAP
与Rest
@H_404_19@
【6】Service DeFinition
服务定义
lSeparate contract from implementation
@H_404_19@
契约与实现分离
@H_404_19@
ØContract (interface) first
@H_404_19@
契约(接口)优先
@H_404_19@
lDefine services in a class library,not directly in a Host project
@H_404_19@
在类库里定义服务,不要在宿主项目里定义
@H_404_19@
lLayering
@H_404_19@
分层
@H_404_19@
ØSeparate Service Layer?
@H_404_19@
划分服务层
@H_404_19@
lInstance model
@H_404_19@
实例模型
@H_404_19@
ØChange to Per Call as default
@H_404_19@
设置Per Call
(单调模式)为默认值
@H_404_19@
ØSession / Singleton when?
@H_404_19@
何时使用会话/
与单例模式?
@H_404_19@
【7】Service Exception Handling
服务异常处理
lFor operation specific exceptions
@H_404_19@
为每个操作指定异常
@H_404_19@
ØTry/catch,throw FaultException<T>
@H_404_19@
Try/catch
,抛出FaultException<T>
@H_404_19@
lFavor using FaultException<T>
@H_404_19@
推荐使用FaultException<T>
@H_404_19@
ØFaultException can be ambiguous to the client because unhandled exceptions arrive as a FaultException
@H_404_19@
FaultException
对于客户端来说过于模糊,因为未处理的异常都会在客户端表现为FaultException
。
@H_404_19@
lInclude FaultContract in service contract deFinition if you throw FaultExceptions
@H_404_19@
如果你要跑出异常,请在服务契约定义里包含FaultContract
(错误契约)
@H_404_19@
ØPart of the API you are exposing
@H_404_19@
就要暴露的API
的一部分
@H_404_19@
lFor global exception handling from services
@H_404_19@
对于来此服务全局的异常处理
@H_404_19@
ØUse an error handler
@H_404_19@
使用错误处理
@H_404_19@
lInclude exception details in debug builds only
@H_404_19@
只有在调试的时候才会包含异常的详细信息
@H_404_19@
【8】Service Security
服务安全
lIntranet services
@H_404_19@
企业局域网(以太网)服务
@H_404_19@
ØDefault Windows Auth may be all you need
@H_404_19@
默认使用Windows
验证
@H_404_19@
ØPossibly Hybrid �Windows Creds / Custom Application Roles
@H_404_19@
或者使用Hybrid �Windows
凭据/
自定义Application
角色
@H_404_19@
lExtranet / Internet / Custom security needs
@H_404_19@
企业外部网络/ Internet/
自定义安全需求
@H_404_19@
lUse ASP.NET Membership / Role providers
@H_404_19@
使用ASP.NET Membership / Role providers
@H_404_19@
lASP.NET providers
@H_404_19@
ASP.NET providers
@H_404_19@
ØReally a standard .NET framework security infrastructure
@H_404_19@
一个标准的.NET framework
安全基础结构
@H_404_19@
ØBuilt in providers for Windows or sql Server � based credentials / roles
@H_404_19@