-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: s_hashim
Message 2 in Discussion


 
Meassage Sink:
 
A message object carries a set of 
named properties, including action identifiers, envoy information, and 
parameters. A remote method call can be thought of as a message that goes from 
the client to the server, and possibly back again. As it crosses boundaries on 
the way, the message passes through a chain of message sinks on each side of the 
transport channel. Each sink in each chain receives the message, performs a 
specific operation, and passes it on to the next sink in the chain.
 
An object that implements IMessage 
meets the minimum qualification to be considered a message object. Also, there 
is no restriction that the exact object received by a message sink must be 
passed on to the next sink, though this is often the case.
 

Channel Sink:
 
Channels send each message along a chain of channel sink objects prior to 
sending or after receiving a message. This sink chain contains sinks required 
for basic channel functionality, such as formatter, transport, or stackbuilder 
sinks, but you can customize the channel sink chain to perform special tasks 
with a message or a stream.
 
Each channel sink implements either IClientChannelSink or 
IServerChannelSink. The first channel sink on the client side must also 
implement IMessageSink. It will typically implement IClientFormatterSink (a 
conglomeration of IMessageSink and IClientChannelSink) and is called a formatter 
sink since it takes the incoming message and transforms it into a stream (an 
IMessage).
 
The channel sink chain processes any message that is sent to or from an 
application domain. At this point, all you have is the message, but you are able 
to do anything you want with that message, and subsequent processing will use 
the message that you return to the system after processing. This is a natural 
place to implement a logging service, any sort of filter, or perhaps encryption 
or other security measures on the client or the server. The following 
illustration shows the structure of a basic channel sink chain.


********** 
Keep Smiling, 
Regards. 


Sayad Hashim Ali 
Kazi
Microsoft India Community Star. 

SQL Star International Ltd.
SQL 
House, #13,Infocity,Madhapur,
Hyderabad 500 081.
Tel: +91-40-2310 
1625(Off) +91-98491-29500(Cell)
www.mugh.net 
-----Original Message-----
From: Sovon 
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 1:11 
PM
To: BDOTNET
Subject: Message Sinks and Channel 
Sinks



  
  
    
    New Message on BDOTNET
  
    

Message 
  Sinks and Channel Sinks


  
    
    
      Reply

      
        
          
          
             
            Reply to Sender   Recommend 
            Message 1 in Discussion 
            
    
      
        
          
          
            From: Sovon 
          
            

              Hi,
              I am very new to remoting.
              Can someone tell me the difference between "Message Sinks" 
              and "Channel Sinks"?
               
              Regards,
              Sovon.
View other groups in this 
  category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to