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] > 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...
> > 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...
> > > 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
> > >
> > >
> > >
> > >
>
>
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
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] > 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...
> > 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
> >
> >
> >
> >
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] > 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...
> > 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...
> > > 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...
> > > > 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
> > > >
> > > >
> > > >
> > > >
> >
> >
> >