private void SerializeRequest(TextWriter textWriter, Request request, object context)
 {
     // Delegate error checking to serializer
     using (var xmlWriter = (CHBaseXmlWriter) CHBaseXmlWriter.Create(textWriter))
     {
         xmlWriter.AllowRootPrefix = true;
         xmlWriter.Context = context;
         m_requestSerializer.Serialize(xmlWriter, request, m_requestNamespaces);
     }
 }
 public override Request CreateRequest()
 {
     Request request = new Request("SearchVocabulary", 1, m_body);
     request.Header.AppId = this.Client.State.ProvisioningInfo.AppIdInstance;
     return request;
 }
 public override Request CreateRequest()
 {
     Request request = new Request("RemoveThings", 1, m_body);
     request.Record = m_record;
     return request;
 }
 public override Request CreateRequest()
 {
     Request request = new Request("BeginPutBlob", 1);
     request.Record = m_record;
     return request;
 }