Đang chuẩn bị liên kết để tải về tài liệu:
windows vista for developers delivery guide phần 6

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Bindings Chọn Bindings là các đối tượng sử dụng để xác định các chi tiết thông tin liên lạc cần thiết để kết nối với các thiết bị đầu cuối của một dịch vụ WCF. Mỗi thiết bị đầu cuối trong một dịch vụ WCF đòi hỏi phải có một ràng buộc được quy định. | 26 Session 2 Introduction to Microsoft .NET Framework 3.0 Technologies Choosing and Configuring Bindings There are two steps when using bindings 1. Choose or define a binding. The easiest method is to choose one of the predefined bindings included with WCF and use it with its default settings. 2. Create an endpoint that uses the selected or defined binding. Choosing Bindings Bindings are objects used to specify the communication details required to connect to the endpoint of a WCF service. Each endpoint in a WCF service requires a binding to be well-specified. The information in a binding can be complex and some settings may not be compatible with others. For this reason WCF includes a set of predefined bindings. These bindings also known as standard bindings are designed to cover most application requirements. If none of the standard bindings has the right combination of features that a service application requires you can create your own custom binding. Session 2 Introduction to Microsoft .NET Framework 3.0 Technologies 27 The following classes represent some examples of predefined bindings Class Description BasicHttpBinding An HTTP protocol binding suitable for connecting to Web services that conforms to the WS-I Basic Profile specification for example ASMX-based services WSHttpBinding An interoperable binding suitable for connecting to endpoints that conform to the WS- protocols NetNamedPipeBinding Uses the .NET Framework to connect to other WCF endpoints on the same machine NetMsmqBinding Uses the .NET Framework to create queued message connections with other WCF endpoints Configuring Bindings You can define bindings through code or through configuration. These two approaches are not dependent on the type of binding used that is whether you are using a predefined or custom binding. In general using code gives you complete control over the definition of a binding at design time. Using configuration on the other hand allows a system administrator or the user of