How do measure the actual size of message received/sent from/to channel by a WCF service.
I tried to put in trace but seems that does not give the actual message size.
I found this thread but seems this is complex to do in my situation since we have highly sophisticated code written around different kinds of message formats and encoding therein.
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/0e98f977-48f7-4617-8750-30a470c993dc/My end goal is to be able to identify the change in size of message, if I gowith dataset vs a complex custom class. I am aware thatdataset is heavier to pass over the channel, however it is the dynamic nature of datathat left us to use datasets.
Dataset is dynamic based on how many ids we have, we have as many money valyes. Count of ID ranges from 1-20 in normal business situations.
Possible data structure if I replace dataset-
-------------------------------------------------
int?[] IDs
double?[] MoneyValue1
double?[] MoneyValue2
double?[] MoneyValue3
int Parameter1
string Parameter2
int Parameter3
------------------------------------------------
Thanks in advance.
Pritesh Ostwal