Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.NET Remoting problem

Status
Not open for further replies.

RexHeadlong

Programmer
Apr 10, 2002
35
US
Hi,

This is the closest forum I can find relating to .NET Remoting. Besides, I am using C# for it. If someone knows of a better forum to post this, I'm all ears.

I'm pretty new to Remoting,  read various articles, tutorials, and chapters of other books.  I've only read Chap 2 of Ingo Rammer's book (Advanced .NET Remoting C# edition).

I've got a remote object defined as pass by reference.  Part of this object's duties are to return a Font object from the server to the client. The Font object is supposed to be pass by value, but when the client receives it, it is really a reference to a Font object on the server.

My app's architecture is similar to Chapter 2, The First Sample of Ingo's book  The only differences I see are:

1) The Font object is assumed to be [Serializable] (according to the documentation), whereas Ingo's Customer object is explicitly [Serializable].
2) The pass-by-reference object (let's call it FontManager) is SingleCall, whereas Ingo's CustomerManager object is Singleton.
3) I don't have anything similar to ICustomerManager, I just have something similar to CustomerManager.  I didn't think I needed an interface definition on both client and server since the FontManager object implementation itself exists on both client and server.  I did it this way because in some cases, the client needs a local FontManager and in other cases it needs the remote FontManager.

The last half of page 21 of Ingo's book pretty much implies that there is no other special set-up required to get a pass-by-value object from the server to the client.

Any ideas?
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top