Thoughts from Dan Miser RSS 2.0
# Tuesday, February 28, 2006
When writing server-side sinks, it's important to remember that order matters when declaring your sinks. For example, consider the following block in a config file:

<serverProviders>
	<provider type="LoggingSink.ServerSinkLoggerProvider, LoggingSink" />
	<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>

The problem here is that if ServerSinkLoggerProvider is a class that implements IServerChannelSink, the requestMsg parameter will be null in the ProcessMessage method. If you reverse the ordering of the 2 lines (i.e. put the formatter first), everything works fine.

This is by design, and due to the chaining of sinks that occurs in .NET Remoting. In the first case, the formatter has not yet deserialized the message, so we can't easily get to the IMessage that was passed to us. In the second case, the formatter takes care of the deserialization first, and can then pass the IMessage to the DispatchChannelSinks for further processing and investigation. The overview of .NET Remoting layers from MSDN is lacking a lot of detail, but hints at what causes the differences. Once I went back to Ingo Rammer's book, the technical reason for this behavior became obvious.

Tuesday, February 28, 2006 3:02:00 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
.NET
Tracked by:
http://9qm-information.info/65097116/berchidda-distilleria.html [Pingback]
http://9qa-information.info/63472874/dotti-azio-lancia.html [Pingback]
http://9qj-information.info/93134660/index.html [Pingback]
http://9oy-information.info/23496715/index.html [Pingback]
http://9om-information.info/18304456/biological-supply-company.html [Pingback]
http://9qg-information.info/29008212/index.html [Pingback]
http://9oa-information.info/54126271/index.html [Pingback]
http://9rd-information.info/86247023/index.html [Pingback]
http://9rt-information.info/49524056/index.html [Pingback]
http://9st-information.info/87104383/index.html [Pingback]
http://9sr-information.info/48147037/index.html [Pingback]
http://9rj-information.info/55991943/index.html [Pingback]
http://9rq-information.info/84611060/index.html [Pingback]
http://9ro-information.info/50179102/si-fi-movie-flight-to-the-stars.html [Pingback]
http://9rc-information.info/31415461/mobile-pocket-pc-emulator.html [Pingback]
http://9uael-le-informazioni.info/35237318/index.html [Pingback]
http://9uafj-le-informazioni.info/90598647/index.html [Pingback]
http://9uafe-le-informazioni.info/81976488/index.html [Pingback]
http://9uafd-le-informazioni.info/61068644/tesi-sonata-primavera-beethoven.html [Pingback]
http://9uaek-le-informazioni.info/41147198/index.html [Pingback]
http://9uaft-le-informazioni.info/86259572/bufo-alvarius-on-sala.html [Pingback]
http://9uaeo-le-informazioni.info/00872247/index.html [Pingback]
http://9uafj-le-informazioni.info/27750949/index.html [Pingback]
http://9uafa-le-informazioni.info/53578010/index.html [Pingback]
http://9uagp-le-informazioni.info/16549413/unita-supplementare-intrastat.html [Pingback]
http://9uagr-le-informazioni.info/76143906/visualizzatore-postscript-file.html [Pingback]
http://9uagt-le-informazioni.info/95312904/index.html [Pingback]
http://9uagg-le-informazioni.info/52253154/index.html [Pingback]
http://9uagh-le-informazioni.info/56297344/index.html [Pingback]
http://9uagg-le-informazioni.info/23379899/index.html [Pingback]
http://9uahe-le-informazioni.info/21976702/itsmf-uk-telephone-number.html [Pingback]
http://9uahj-le-informazioni.info/28231586/102-1-the-edge-dallas.html [Pingback]
Navigation
Archive
<December 2014>
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2014
Dan Miser
Sign In
Statistics
Total Posts: 388
This Year: 0
This Month: 0
This Week: 0
Comments: 630
Themes
Pick a theme:
All Content © 2014, Dan Miser
DasBlog theme 'Business' created by Christoph De Baene (delarou)