private string MessageForXml(ElementState requestObj, int uidUsed) { string msg = SimplTypesScope.Serialize(requestObj, StringFormat.Xml); string ret = String.Format("content-length:{0}\r\nuid:{1}\r\n\r\n{2}", msg.Length, uidUsed, msg); return ret; }
public void SetupInParent(ElementState newParent) { _elementById = newParent.ElementById; }
public static MetaMetadata GetMetaMetadata(ElementState that) { if (that is MetaMetadata) { return (MetaMetadata) that; } ElementState parent = that.Parent; return (parent == null) ? null : GetMetaMetadata(parent); }