Entity size

Posts   
 
    
Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 15-Aug-2005 03:41:41   

Hi all.

How would you go about writing a server method that reflects the size of the entity or entitycollection that it passes back to the client?

Thanks!

Jeff

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 15-Aug-2005 10:53:42   

Size as in: # of bytes in a remoting scenario?

Frans Bouma | Lead developer LLBLGen Pro
Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 15-Aug-2005 18:58:46   

Otis wrote:

Size as in: # of bytes in a remoting scenario?

Yes, exactly.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 16-Aug-2005 11:36:23   

Jeff wrote:

Otis wrote:

Size as in: # of bytes in a remoting scenario?

Yes, exactly.

I think the only way to determine that is to serialize the same graph again in a memorystream and then measure the size of the stream in bytes (seek to the end, read position).

Frans Bouma | Lead developer LLBLGen Pro