Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
.NET 11
ASP.Net 11
#ASP.Net 11
WCF 11
#DOTNET 11

Archive · View All
September 2011 4
October 2011 3
November 2011 2
February 2012 1
December 2011 1
January 2012 1
August 2011 1

Ganesh Divekar's Blog

WCF # 9 – WCF Channels and How WCF Channel stack works?

Nov 9 2011 1:08PM by Ganesh Divekar   

Hi Geeks,

Today we will see a very important feature/part of the WCF called CHANNELS.

A CHANNEL IS THE CONDUIT through which all messages pass to and from WCF applications.

It is responsible for preparing and delivering messages in a consistent way.

Channels are defined for transports, protocols,and message interception.

Channels are layered together to create a CHANNEL STACK.

The goal of a channel stack is to transform a message into a wire format compatible with the sender and receiver and to transport the message.

There are two types of channels that are used to do this:

1) Transport channels
2) Protocol channels.

 

1) Transport Channels

Transport channels always sit at the bottom of the channel stack and are responsible for transporting messages using a transport protocol. WCF provides a number of transport protocols, including HTTP, TCP, MSMQ, peer-to-peer, and named pipes.

image

2) Protocol Channels

Protocol channels reside on top of transports or other protocol channels. Because protocol
channels reside on top of other channels, they are often referred to as layered channels. Protocol channels are responsible for implementing wire-level protocols by transforming and modifying messages. WCF provides many types of protocol channels. Examples include protocol channels that implement support for security, transactions, and reliable messaging.

How Channel Stack works??

The following diagram shows how a message flows from a WCF client application through a client-side channel stack over a given transport to a server

image

 

I) Role of Protocol Channels

a)At the top of the stack are the protocol channels.                                                        

b)Protocol channels interact with a message and facilitate security, reliable messaging,   transactions, and logging features.

c)There can be any number of protocol channels in a channel stack, depending on the  required features.

II) Role of Transport Channels

a) Transport channels are responsible for sending bytes over a transmission protocol such as TCP or HTTP.

b)They are also responsible for using an encoder to convert messages into an array of bytes for transport.

c)It is the job of an encoder to convert a message from its XML representation to an array of bytes. Encoders are exposed to the transport channel using binding elements.

d)Transport channels look in the binding context for an implementation of a MessageEncoder class. If none are available, the transport channel can specify a default message encoder.

We will go in depth with the Channel Shapes in coming post.

Thank You.

Tags: #DOTNET, WCF, #ASP.Net, ASP.Net, .NET,


Ganesh Divekar
160 · 1% · 298
1 Readers Liked this
Kirti M.Darji Liked this on 11/18/2011 11:24:00 PM
Profile · Blog · Facebook · Twitter
1
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

3  Comments  

  • Learned something new today... Which is better one is that Transport Channel or Protocol Channel?

    commented on Nov 16 2011 10:57PM
    Karthikeyan Anbarasan
    54 · 4% · 1126
  • The purpose of using Transport channel and protocol channels isdifferent, 1) Transport channel deals with sending/receiving the message while 2) Protocol channels deals with function like security. Protocol channels operate on messages flowing through them, typically applying transformations like adding headers, encrypting or signing some message parts or perhaps sending or receiving their own protocol messages.

    commented on Nov 17 2011 12:31AM
    Ganesh Divekar
    160 · 1% · 298
  • Thanks Ganesh for your response. Got clear idea on the two channels

    commented on Nov 17 2011 12:50AM
    Karthikeyan Anbarasan
    54 · 4% · 1126

Your Comment


Sign Up or Login to post a comment.

"WCF # 9 – WCF Channels and How WCF Channel stack works?" rated 5 out of 5 by 1 readers
WCF # 9 – WCF Channels and How WCF Channel stack works? , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]