Exemplo n.º 1
0
        // Token: 0x0600027B RID: 635 RVA: 0x0000E3AC File Offset: 0x0000C5AC
        void IAirSyncResponse.BuildMultiPartWbXmlResponse(XmlDocument xmlResponse, Stream stream)
        {
            this.context.Response.ContentType = "application/vnd.ms-sync.multipart";
            WbxmlWriter wbxmlWriter = new WbxmlWriter(stream);

            wbxmlWriter.WriteXmlDocument(xmlResponse);
        }
Exemplo n.º 2
0
 // Token: 0x0600027A RID: 634 RVA: 0x0000E33C File Offset: 0x0000C53C
 void IAirSyncResponse.IssueWbXmlResponse()
 {
     if (this.responseWritten)
     {
         AirSyncDiagnostics.TraceError(ExTraceGlobals.ProtocolTracer, this, "[AirSyncResponse.IssueWbXmlResponse] Document has already been written to the HttpResponse stream.");
         return;
     }
     if (this.xmlDocument != null)
     {
         this.httpResponse.ClearContent();
         this.httpResponse.ContentType = "application/vnd.ms-sync.wbxml";
         WbxmlWriter wbxmlWriter = new WbxmlWriter(this.httpResponse.OutputStream);
         wbxmlWriter.WriteXmlDocument(this.xmlDocument);
         this.responseWritten = true;
     }
 }