private RenderingInfoRoot Deserialize(AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.GetReportChunk getChunkCallback) { Stream stream = null; try { string text = default(string); stream = getChunkCallback(this.m_chunkName, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.ReportChunkTypes.Other, out text); RenderingInfoRoot result = null; if (stream != null) { BinaryFormatter bFormatter = new BinaryFormatter(); //result = (RenderingInfoRoot)bFormatter.Deserialize(stream); //todo: can delete? RevertImpersonationContext.Run(delegate { result = (RenderingInfoRoot)bFormatter.Deserialize(stream); }); } return(result); } catch (SerializationException) { return(null); } finally { if (stream != null) { stream.Close(); } } }
public RenderingInfoManager(string rendererID, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.GetReportChunk getChunkCallback, bool retrieveRenderingInfo) { this.m_chunkName = "RenderingInfo_" + rendererID; if (retrieveRenderingInfo) { this.m_renderingInfoRoot = this.Deserialize(getChunkCallback); } else { this.m_renderingInfoRoot = null; } }
public CommonInfo(string rendererID, DateTime executionTime, ICatalogItemContext reportContext, NameValueCollection reportParameters, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.GetReportChunk getChunkCallback, ChunkManager.RenderingChunkManager chunkManager, IGetResource getResourceCallback, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.GetChunkMimeType getChunkMimeType, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.StoreServerParameters storeServerParameters, bool retrieveRenderingInfo, UserProfileState allowUserProfileState, ReportRuntimeSetup reportRuntimeSetup, IntermediateFormatVersion intermediateFormatVersion) { this.m_rendererID = rendererID; this.m_executionTime = executionTime; this.m_reportContext = reportContext; if (reportParameters != null) { this.m_replacementRoot = reportParameters["ReplacementRoot"]; } this.m_renderingInfoManager = new RenderingInfoManager(rendererID, getChunkCallback, retrieveRenderingInfo); this.m_chunkManager = chunkManager; this.m_getResourceCallback = getResourceCallback; this.m_getChunkCallback = getChunkCallback; this.m_getChunkMimeType = getChunkMimeType; this.m_storeServerParameters = storeServerParameters; this.m_allowUserProfileState = allowUserProfileState; this.m_reportRuntimeSetup = reportRuntimeSetup; this.m_intermediateFormatVersion = intermediateFormatVersion; }
public RenderingContext(ReportSnapshot reportSnapshot, string rendererID, DateTime executionTime, EmbeddedImageHashtable embeddedImages, ImageStreamNames imageStreamNames, EventInformation eventInfo, ICatalogItemContext reportContext, Uri contextUri, NameValueCollection reportParameters, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.GetReportChunk getChunkCallback, ChunkManager.RenderingChunkManager chunkManager, IGetResource getResourceCallback, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.GetChunkMimeType getChunkMimeType, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.StoreServerParameters storeServerParameters, bool retrieveRenderingInfo, UserProfileState allowUserProfileState, ReportRuntimeSetup reportRuntimeSetup, IJobContext jobContext, IDataProtection dataProtection) { this.m_commonInfo = new CommonInfo(rendererID, executionTime, reportContext, reportParameters, getChunkCallback, chunkManager, getResourceCallback, getChunkMimeType, storeServerParameters, retrieveRenderingInfo, allowUserProfileState, reportRuntimeSetup, reportSnapshot.Report.IntermediateFormatVersion); this.m_inPageSection = false; this.m_prefix = null; this.m_eventInfo = eventInfo; this.m_reportSnapshot = reportSnapshot; this.m_processedItems = null; this.m_cachedHiddenInfo = null; this.m_contextUri = contextUri; this.m_embeddedImages = embeddedImages; this.m_imageStreamNames = imageStreamNames; this.m_currentReportICatalogItemContext = this.m_commonInfo.TopLevelReportContext; this.m_jobContext = jobContext; this.m_dataProtection = dataProtection; }