[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Return Values and network usage.

Shaun Wilson

8/16/2004 4:13:00 PM

When a client calls a method on an remote object, but does not require
the return value, does the remoting framework still send the return
value over the network back to the client or is it intelligent enough to
know it isn't necessary?



Example:



public class RemoteObject : MarshalByRefObject

{

// .

public ArrayList Foo(object value)

{

return new ArrayList();

}

}



// .

remoteObject.Foo();



If the return value is getting sent to the client even though the client
call doesn't need it, is there anything I can do to intelligently 'throw
away' the return value (without requiring myself to decorate the call,
as this is "not the exception, but the rule".



Thanks for any info.