I have an object that is dispatched through WCF, which is essentially the owner of the property - it can potentially have a large number of properties, that is, up to 100, but in general only a small subset will be set, up to 10 for the instance.
Example:
[DataContract(Namespace = "...")]
public class Monkey
{
[DataMember]
public string Arms { get; set; }
[DataMember]
public string Legs { get; set; }
[DataMember]
public string Heads { get; set; }
[DataMember]
public string Feet { get; set; }
[DataMember]
public string Bodies { get; set; }
}
Is there a way to tell WCF to send only completed properties on the wiring? It looks like a potential waste of bandwidth for sending across the entire facility.
source
share