方針及最佳作法Guidelines and Best Practices

本節將提供指導方針建立 Windows Communication Foundation (WCF) 應用程式的主題。This section contains topics that provide guidelines for creating Windows Communication Foundation (WCF) applications.

本節內容In This Section

最佳做法:資料合約版本控制Best Practices: Data Contract Versioning
說明如何及何時建立不會在未來版本建立時中斷的資料合約。Explains how and when to create data contracts that do not break when future versions are created.

服務版本設定Service Versioning
說明如何在 WCF 中的版本控制,請考慮。Explains how to consider versioning in WCF. 部署之後,服務 (及其公開的端點) 可能必須予以變更,例如,為了滿足商務需求或 IT 需求的變更,或者為了修復問題。After deployment, services (and the endpoints they expose) might need to be changed, for example, to satisfy changing business requirements or IT requirements, or to fix issues. 每個變更都會產生新的服務版本。Each change introduces a new version of the service.

負載平衡Load Balancing
列出使用 Web 伺服陣列的負載平衡方針。Lists guidelines for load balancing with a Web farm.

控制資源使用並改善效能Controlling Resource Consumption and Improving Performance
說明為了防止過度消耗資源及改善安全性,並指出有關其使用之完整資訊而設計的屬性。Describes the properties that are designed to help prevent undue resource consumption and improve security and points to more complete information about their use.

利用 ClickOnce 部署 WCF 應用程式Deploying WCF Applications with ClickOnce
說明使用 ClickOnce 功能時所需考量的事項。Describes the considerations to be made when using the ClickOnce feature.

參考資料Reference

System.ServiceModel

System.Runtime.Serialization

概念性概觀Conceptual Overview

基本 WCF 程式設計Basic WCF Programming

另請參閱See also