Here are the links that show some of WCF extensibility points
Messages filter sample http://msdn2.microsoft.com/en-us/library/aa717046.aspx
Channels extensibility samples http://msdn2.microsoft.com/en-us/library/aa967568.aspx
You wrote on Wed, 21 Mar 2007 18:51:20 +0200:
SZ> Unfortunately the proposed article does not mention interception points
SZ> on the way back from the server to the client. We presume that the
SZ> mechanism is somewhat similar to the one described in the article, but
SZ> still there are no examples. We couldn't figure out how to handle our
SZ> Best regards.
SZ> "Vadym Stetsyak" <email@example.com> wrote in message
??>> Hello, Stephan!
??>> Have a look at this
??>> ion-points.aspx ) You wrote on Wed, 21 Mar 2007 12:14:41 +0200:
SZ>>> We need to execute some code after a WCF method has finished and its
SZ>>> reply message is prepared.
SZ>>> The last thing we tried was to use an attribute which implements
SZ>>> IServiceBehavior and in ApplyDispatchBehavior we add a message
SZ>>> inspector (a class that implements IDispatchMessageInspector).
SZ>>> Unfortunately BeforeSendReply method is invoked proir to the
SZ>>> serialization of the returned objects. We need to execute some code
SZ>>> after the serialization - to be specific we are trying to close an
SZ>>> NHibernate session with Lazy Loading enabled.
SZ>>> Does anyone have an idea of how we can get called at the point when
SZ>>> reply message is serialized?
??>> With best regards, Vadym Stetsyak.
??>> Blog: http://vadmyst.blogspot.com
With best regards, Vadym Stetsyak.