There are two types of channels: Transport Channels and Protocol Channels. Transport channels sit at the lowest layer and provide the actual transport for messages. Protocol channels provide security, transactions, sessions, and message reliability.
Channels are layered upon one another, to create a channel stack. Bindings represent channel stack configurations, and simply the process of creating and referencing channel stacks.
The 3 communication patterns:
- One-way
- Request-Response
- Duplex
- IOutputChannel (IOutputSessionChannel). Supports one-way communication.
- IInputChannel (IInputSessionChannel). Supports one-way communication.
- IDuplexChannel (IDuplexSessionChannel). Supports duplex communication.
- IRequestChannel (IRequestSessionChannel). Supports request-response communication.
- IResponseChannel (IResponseSessionChannel). Supports request-response communication.
Channel listeners can be closed without closing down the channel on which they were listening.
Channel factories are responsible for closing down their channels.
ICommunication object is the basis of all communication objects in WCF, which includes channels, channel factories, and channel listeners. Communication objects go through states: Created, Opening, Opened, Closing, Closed, and Faulted. Events are thrown when the Communication object transitions between these states.
No comments:
Post a Comment