博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WCF Basic Concept
阅读量:7163 次
发布时间:2019-06-29

本文共 1053 字,大约阅读时间需要 3 分钟。

 

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

你可能感兴趣的文章