Groups | Blog | Home
all groups > dotnet remoting > may 2004 >

dotnet remoting : Verify RemotingServices.Connect Proxy object


Ken Kolda
5/7/2004 9:33:19 AM
I've never done this, but it looks like you can use
RemotingServices.GetRealProxy() to get the RealProxy for the remoted object
and then call its DetachServer() method, e.g.

RealProxy proxy = RemotingServices.GetRealProxy(remoteObject);
proxy.DetachServer();

Ken


[quoted text, click to view]

Sunny
5/7/2004 10:46:26 AM
I'm afraid this is the only solution. The connection is established for
the method call.

Sunny

In article <ee5KVRENEHA.3596@tk2msftngp13.phx.gbl>,
nomailadress@yahoo.net says...
[quoted text, click to view]
Sunny
5/7/2004 11:57:32 AM
Marshal and Disconnect are used at server side to expose the object to
remoting.

While at client side you do not have the object, but a proxy to it. So,
when your proxy goes out of scope, or is set to null, that is enough.
You do not need explicitly to disconnect the object.

Sunny

In article <OOL2uvENEHA.1032@tk2msftngp13.phx.gbl>,
nomailadress@yahoo.net says...
[quoted text, click to view]
Tobias
5/7/2004 5:02:30 PM
Hi,

how can I verify wether the TransparentProxy object returned by
someVariable = RemotingServices.Connect( typeof( Interface ), anyServerURI )
as Interface;

is active or not? I call this method and get a TransparentProxy in
"someVariable" wether the server is online or not.

I know I can call a "dummy" method like someVariable.Hello() on the server,
but I don´t think that this is a good solution.

Does anybody have a better idea without using channel-specific methods?

Thanks,

Tobias


Tobias
5/7/2004 5:56:52 PM
Thank you, Sunny.

Another Question: Is there any counterpart to RemotingServices.Connect(...)?

Like RemotingServices.Disconnect(...) after RemotingServices.Marshal(...).


"Sunny" <sunnyask@icebergwireless.com> schrieb im Newsbeitrag
news:OY2H3pENEHA.644@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Tobias
5/7/2004 10:50:10 PM
Thanks again Sunny.

That?s the answer I wanted to read.

Tobias

"Sunny" <sunnyask@icebergwireless.com> schrieb im Newsbeitrag
news:uszwlRFNEHA.3312@tk2msftngp13.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button