all groups > dotnet remoting > may 2006 >
You're in the

dotnet remoting

group:

Question about performance using remoting


Question about performance using remoting CodeLookingAhead
5/13/2006 2:32:02 AM
dotnet remoting:
I have object that has properties such as FirstName, LastName, City, State, I
also have a method call Add which contains the logic to insert the previous
information in the database. If I use remoting with this object will a trip
be made to the server every time I update a property? I really only want the
Re: Question about performance using remoting Tommaso Caldarola
5/13/2006 12:10:07 PM
[quoted text, click to view]

If you are using MarshalByRef (MBR) object every time you access to the object
property you have a round trip with the server while you pass the object from
server to the client (Marshal By Value, MBV) you access to the object properties
as it was local.
Anyway depends what you have to do, imho if you have to present data then it's
better pass (MBV) object rather than to have MBR objetcs.



Re: Question about performance using remoting Gaurav Vaish (EduJini.IN)
5/14/2006 12:00:00 AM
[quoted text, click to view]

Assuming that Add method does not return anything (return type void in J#,
C#, C++ or it's a Sub in VB.Net), use "OneWay" Attribute.

Note that the call would always be asynchronous in this case.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://www.edujini.in
-------------------

AddThis Social Bookmark Button