本书是专门阐述某些设计决策背后的基本原理,对于那些文档稀缺、少人理解的SOA开发要点的权威入门指南。开发者和架构师们从本书中将不仅学到如何进行WCF编程,还能了解相关的设计指导原则、最佳实践和潜在陷阱。作者在本书中提及的技巧和应用程序均超越那些在传统资源中所找到的内容。
这些内容由50余个原创工具、帮助类和70多张设计图组成,有益于弥补你对WCF本身理解的疏漏,也有助于简化和自动化某些任务,可帮助你提升生产力和WCF服务程序的质量。
除了介绍面向服务的理念之外,《WCF Service编程》还涵盖了以下内容:servicecontract分解、事务和错误处理、datacontract版本和整编、并发管理、可伸缩性策略、队列化服务、操作、调用和事件和面向服务的安全性。
《WCF Service编程》是一本关于Windows Communication Foundation(WCF)的权威入门指南,WCF是微软用于开发面向服务的Windows应用程序的统一(也有人说是革命性的)平台。本书作者Juval Lowy是微软公司软件部门的传奇人物,他参与了WCF的战略设计并与该开发团队共同工作,这本颇具实践指导意义的书表达了他的深刻见解,而不只是一份技术文档。《WCF Service编程》从软件工程角度讨论了servicecontract分解、事务和错误处理、datacontract版本和整编等话题,因此你学习完本书之后,不仅会成为一位WCF专家,还会成为一名更优秀的软件工程师。以本书所提供的深刻见解为武装,你将能随心设计可维护、可扩展、可重用的SOA应用程序。
Foreword
Preface
1. WCF Essentials
What Is WCF?
Services
Addresses
Contracts
Hosting
Bindings
Endpoints
Metadata Exchange
Client-Side Programming
Programmatic Versus Administrative Configuration
WCF Architecture
Working with Channels
Reliability
2. Service Contracts
Operation Overloading
Contract Inheritance
Service Contracts Factoring and Design
Contract Queries
3. Data Contracts
Serialization
Data Contract Attributes
Data Contract Hierarchy
Data Contract Equivalence
Versioning
Enumerations
Delegates and Data Contracts
Data Sets and Tables
Generics
Collections
4. Instance Management
Behaviors
Per-Call Services
Per-Session Services
Singleton Service
Demarcating Operations
Instance Deactivation
Throttling
5. Operations
Request-Reply Operations
One-Way Operations
Callback Operations
Events
Streaming
6. Faults
Errors and Exceptions
Fault Contracts
Error-Handling Extensions
7. Transactions
The Recovery Challenge
Transactions
Transaction Propagation
Transaction Protocols and Managers
The Transaction Class
Transactional Service Programming
Explicit Transaction Programming
Service State Management
Instance Management and Transactions
Callbacks
8. Concurrency Management
Instance Management and Concurrency
Service Concurrency Mode
Instances and Concurrent Access
Resources and Services
Resource Synchronization Context
Service Synchronization Context
Custom Service Synchronization Context
Callbacks and Client Safety
Callbacks and Synchronization Context
Asynchronous Calls
9. Queued Services
Disconnected Services and Clients
Queued Calls
Transactions
Instance Management
Concurrency Management
Delivery Failures
Playback Failures
Queued Versus Connected Calls
Response Service
HTTP Bridge
10. Security
Authentication
Authorization
Transfer Security
Identity Management
Overall Policy
Scenario-Driven Approach
Intranet Application
Internet Application
Business-to-Business Application
Anonymous Application
No Security
Scenarios Summary
Declarative Security Framework
Security Auditing
A. Introduction to Service-Orientation
B. Publish-Subscribe Service
C. WCF Coding Standard
Index