WCF Basic Concept

本文详细阐述了设计和实现WCF服务的过程,包括服务合同设计、实例化模式选择、并发模式设置、事务支持、同步上下文使用、服务与端点配置、程序化与声明式配置、自定义初始化特性、代理生成、集合与数组处理、对象模型一致性、异常与通道管理、多线程考虑及UI响应性关注等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://msdn.microsoft.com/library/ee354180.aspx

 

Steps:

Designing a Service Contract

 

 

Implementing a WCF Service

  • What instancing mode will be used?
  • What concurrency mode will be used?
  • Are transactions supported for this service type?
  • Should the service join a particular synchronization context?

 InstanceContextMode =>The default is PerSession which is typically not the desired setting.

 

 

Hosting a WCF Service

  • How many endpoints will be exposed for the service type? What protocols will be supported?
  • Will a metadata exchange endpoint be provided?
  • Which service behaviors and endpoint behaviors will be configured?
  • What features will be configured programmatically?
  • What features will be configured declaratively?
  • Will a custom  and  be useful to encapsulate common initialization features?

 

Generating Proxies

 

  • How will collections and arrays be handled?
  • Is a consistent object model desired to match the service implementation?
  • How will exceptions and faulted channels be managed?
  • Are there multithreading considerations?
  • Is UI responsiveness a concern?

 

转载于:https://www.cnblogs.com/kevinygq/p/3887274.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值