public void Save(AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.CreateReportChunk createChunkCallback) { if (this.m_renderingInfoRoot != null) { this.Serialize(this.m_renderingInfoRoot, createChunkCallback); } }
private void Serialize(RenderingInfoRoot renderingInfoRoot, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.CreateReportChunk createChunkCallback) { Stream stream = null; try { stream = createChunkCallback(this.m_chunkName, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.ReportChunkTypes.Other, null); if (stream != null) { BinaryFormatter binaryFormatter = new BinaryFormatter(); binaryFormatter.Serialize(stream, renderingInfoRoot); } } finally { if (stream != null) { stream.Close(); } } }