have a look at my article [1] how I used the IConstructionReturnMessage.

HTH

Roman

[1] http://www.codeproject.com/useritems/RemotingProbe.asp


On Tue, 8 Oct 2002 10:11:46 +0200, Sean Hederman <[EMAIL PROTECTED]>
wrote:

>Hi. New to the list so please be patient if I make any mistakes.
>
>I'm looking creating an Aspect-Oriented Programming framework. In order
>to do this I need to intercept the IMethodCallMessage,
>IMethodReturnMessage, IConstructionCallMessage, and
>IConstructionReturnMessage messages. I have successfully intercepted the
>IMethodCallMessage and IMethodReturnMessage using IMessageSink. I have
>also intercepted the IConstructionCallMessage in an overloaded
>ContextAttribute.GetPropertiesForNewContext procedure. This is all based
>upon the code in Ingo Rammers "Advanced .NET Remoting" book, Chapter 11.
>However, I am struggling to find out how I intercept the
>IConstructionReturnMessage. The IMessageSink.SyncProcessMessage
>procedure appears to only intercept the IMethodCallMessage and
>IMethodReturnMessage. However, Rammers code seems to imply that
>IMessageSink.SyncProcessMessage should intercept more than these two.
>
>I'm thinking that there's three main possibilities here:
>1: I'm not setting up the message sink correctly, and that
>IConstructionCallMessage and IConstructionReturnMessage should be
>intercepted by IMessageSink.SyncProcessMessage.
>2: There is some interface I must implement, or some procedure I must
>override to intercept the IConstructionReturnMessage.
>3: I can retrieve the IConstructionReturnMessage from the
>IConstructionCallMessage in some manner.
>
>Unfortunately the documentation does not appear to cover any of the
>above solutions.
>
>Thanks for any help
>
>______________________________________________
>
>"This information is intended only for the person or entity to which it is
addressed and
>may contain private, confidential, proprietary and/or privileged material
and may be subject
>to confidentiality agreements.
>
>Any review, retransmission, dissemination, or any other use of or taking
of any action in
>reliance upon this information, by persons or entities other than the
intended recipient,
>is prohibited.
>
>If you received this in error, please contact the sender and delete the
material from all
>storage media.
>
>The company is neither liable for proper, complete transmission of the
information contained
>
>You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
>subscribe to other DevelopMentor lists at http://discuss.develop.com.
>in this communication, any delay in its receipt or that the mail is virus-
free"

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to