A few blogs are all about the knowledge of WCF fragmentation. To understand the following macro, what is WCF?
Wcf:windows Communication Foundation (WCF) framework.
1.WCF System Framework
2. Framework Analysis
2.1. What is a contract? --What?
Defines the method that the service exposes, the transport protocol used, the accessible address, the transmitted message format, and so on.
2.2. Service execution Library--How to do
Defines the detailed behavior of the service at execution time. Assuming that the contract is an interface, then this step is equivalent to the method of implementing the service
2.3. Message
Defines the way the message is transmitted, the encoding of the message, which is transmitted by default with the SOAP protocol. Through this part of the message. Very good control Transfer Protocol
2.4. Host
No matter what, a service must depend on an executable program. Frequently Used window services,. exe programs, etc.
3. Basic Concept Interpretation
1. Address
In WCF, each service is matched by a unique address. Therefore, an address should include the protocol used by the communication. such as HTTP net.tcp, etc.
2. Binding
Defines the way in which external communication is served
such as the way of communication HTTP TCP peer
Message encoded binary, plain text
Message Security
3. Contract
1. Service Contract
Associates multiple related cells to a piece. A single functional unit consisting of
2. Data Contract
The data type used by the service must be described in metadata, and the description of the data type is called a data contract
3. Wrong contract
4. Message Contracts
The format used to describe the message, or the message should be included in the message header or in the body of the message
4. End point
A service can have multiple endpoints, but a service has only one address. So multiple endpoints share an address.
5. Meta-data
6. Host
The service must be hosted in a process.
Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.
What is WCF