.NET Framework Bookmark and Share   
 index > .NET Remoting and Runtime Serialization > Remoting header
 

Remoting header

Hi all,

I was wondering if it is possible to add header information to a .NET remoting call.
I have a client application that communicates with a service over TCP using singleton MarshalByRefObjects.
Because multiple clients use the same object I would like to pass a client ID along with the call.
Of course I could add anotherargument in the method call, but this solution does not appear very elegant to me.
So, is there some kind of method to add metadata along with a remoting call? (very much like headers in web services)

Any help is appreciated.
Kind regards,
Stefan
Stefan_A
Hello

Is it the following that you want or something else ?

http://forum.springsource.org/showthread.php?t=14487

Reply me
Amolpbhavsar
Hello,

First of all, thanks for helping!
The article is quite vague, and the writer himself is not too sure about the solution.
But it did give mesome ideas about in which direction I could search.

I was thinking about implementing a custom IMessage or inheriting RealProxy or something similar.
Right before the IMessage is sent, I should attach a client Guid.
I know that a dictionary is sent along with the message, so maybe I can add the guid in the dictionary.
If I could then extract this guid service side,it could then be added toCallContext.
Then, I caninvoke whatever method isrequested in the business layer, and check for the guid in the CallContext there.
That would solve this issue in anabstract manner.
The problem is that I do not have much indepth knowledge about how remoting works"under the hood".
Stefan H.F. A.

You can use google to search for other answers

Custom Search

More Threads

• Getting UNC Path from Mapped drive
• How to use Integrated Windows Authentication to open DB connection in .NET remoting hosted in IIS.
• .net remoting
• Serializing object in to XML format and then Deserializing it.
• MessageQueue issue
• Remoting Opening of a Form doesn't load the Form
• Internals of remote object creation
• Microsoft.Samples.Runtime.Remoting.Security.SecuritySinkMessageHeaderException
• ASP.Net web page in Subdomain
• the serialize question,Unable to translate bytes [FF] at index 54 from specified code page to Unicode