void IDataImport.SendMessage(IDataMessage message) { if (!this.useBuffering) { base.WrappedObject.SendMessage(message); return; } DataMessageOpcode value; byte[] array; message.Serialize(this.useCompression, out value, out array); this.writer.Write((int)value); if (array != null) { this.writer.Write(array.Length); this.writer.Write(array); this.uncompressedSize += 8 + array.Length; } else { this.writer.Write(0); this.uncompressedSize += 8; } this.bufferCount++; if (this.gzipStream != null) { this.gzipStream.Flush(); } if (this.dataBuffer.Length >= (long)this.minBatchSize) { this.FlushBuffers(false); } }
void IDataImport.SendMessage(IDataMessage message) { DataMessageOpcode opcode; byte[] data; message.Serialize(base.MrsProxyClient.UseCompression, out opcode, out data); base.MrsProxy.IDataImport_ImportBuffer(base.Handle, (int)opcode, data); }
void IDataImport.SendMessage(IDataMessage message) { MrsTracer.ProxyService.Function("DataExport.SendMessage", new object[0]); this.CheckForCancel(); message.Serialize(this.service.UseCompression, out this.nextOpcode, out this.nextBuffer); this.result = DataExport.DataExportResult.MoreData; this.eventDataAvailable.Set(); this.WaitForTheNextCall(); }