Remoting + Lazy Load

Hi guys,

I have little experience with distributed app. and now am trying to build an app. using .net remtoing. But I am stuck on using whethermarshal-by-value ormarshal-by-reference.

I understand their differences and I think marshal-by-value object is much more efficient as it saves a lot network traffic. But from what I read, when you serialize an object and pass it across the network, all objects referenced by this object will be serialized as well. It has adverse effect on performance, obviously.

So my question is how can I use marshal-by-value object and at the same time lazy load some/all objects referenced by this object instead of pull the whole object graph at once?

Any resources will be great. Thanks.

Michael

[766 byte] By [MichaelChan] at [2008-2-23]
# 1
Hi,

I'm not sure, but maybe the [NonSerialized]-attribute might help you.

Good luck with it!

BartCoppens at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...
# 2
Thanks. Seems is what I am missing.
MichaelChan at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...

.NET Development

Site Classified