internal void ExecuteReportInCurrentAppDomain(Evidence reportEvidence) { if (!IsAppDomainCasPolicyEnabled) { throw new InvalidOperationException(ProcessingStrings.CasPolicyUnavailableForCurrentAppDomain); } SetAppDomain(useSandBoxAppDomain: false); m_reportRuntimeSetup = ReportRuntimeSetup.CreateForCurrentAppDomainExecution(reportEvidence); }
private void EnsureSandboxAppDomainIfNeeded() { if (ExecuteInSandbox && m_exprHostSandboxAppDomain == null) { m_exprHostSandboxAppDomain = m_appDomainPool.GetAppDomain(m_sandboxCasSettings); m_appDomainPool.PolicyManager.PolicyChanged += OnPolicyChanged; m_reportRuntimeSetup = new ReportRuntimeSetup(GetReportRuntimeSetup(), m_exprHostSandboxAppDomain.AssemblyLoadContext); } }
private void EnsureSandboxAppDomainIfNeeded() { if (this.ExecuteInSandbox && this.m_exprHostSandboxAppDomain == null) { this.m_exprHostSandboxAppDomain = ReportRuntimeSetupHandler.m_appDomainPool.GetAppDomain(this.m_sandboxCasSettings); ReportRuntimeSetupHandler.m_appDomainPool.PolicyManager.PolicyChanged += this.OnPolicyChanged; this.m_reportRuntimeSetup = new ReportRuntimeSetup(this.GetReportRuntimeSetup(), this.m_exprHostSandboxAppDomain.AppDomain); } }
public void ExecuteReportInCurrentAppDomain(Evidence reportEvidence) { if (!this.IsAppDomainCasPolicyEnabled) { throw new InvalidOperationException(ProcessingStrings.CasPolicyUnavailableForCurrentAppDomain); } this.SetAppDomain(false); this.m_reportRuntimeSetup = ReportRuntimeSetup.CreateForCurrentAppDomainExecution(reportEvidence); }
internal void ExecuteReportInCurrentAppDomain() { if (!IsAppDomainCasPolicyEnabled) { throw new InvalidOperationException(ProcessingStrings.CasPolicyUnavailableForCurrentAppDomain); } SetAppDomain(useSandBoxAppDomain: false); EnsureSandboxAppDomainIfNeeded(); // ??? m_reportRuntimeSetup = ReportRuntimeSetup.CreateForCurrentAppDomainExecution(); }
internal void ExecuteReportInSandboxAppDomain() { SetAppDomain(useSandBoxAppDomain: true); AppDomain exprHostAppDomain = null; if (m_exprHostSandboxAppDomain != null) { exprHostAppDomain = m_exprHostSandboxAppDomain.AppDomain; } m_reportRuntimeSetup = ReportRuntimeSetup.CreateForSeparateAppDomainExecution(exprHostAppDomain); }
public void ExecuteReportInSandboxAppDomain() { this.SetAppDomain(true); AppDomain exprHostAppDomain = null; if (this.m_exprHostSandboxAppDomain != null) { exprHostAppDomain = this.m_exprHostSandboxAppDomain.AppDomain; } this.m_reportRuntimeSetup = ReportRuntimeSetup.CreateForSeparateAppDomainExecution(exprHostAppDomain); }
internal CommonInfo(string rendererID, DateTime executionTime, ICatalogItemContext reportContext, NameValueCollection reportParameters, Microsoft.ReportingServices.ReportProcessing.ReportProcessing.GetReportChunk getChunkCallback, ChunkManager.RenderingChunkManager chunkManager, IGetResource getResourceCallback, Microsoft.ReportingServices.ReportProcessing.ReportProcessing.GetChunkMimeType getChunkMimeType, Microsoft.ReportingServices.ReportProcessing.ReportProcessing.StoreServerParameters storeServerParameters, bool retrieveRenderingInfo, UserProfileState allowUserProfileState, ReportRuntimeSetup reportRuntimeSetup, IntermediateFormatVersion intermediateFormatVersion) { m_rendererID = rendererID; m_executionTime = executionTime; m_reportContext = reportContext; if (reportParameters != null) { m_replacementRoot = reportParameters["ReplacementRoot"]; } m_renderingInfoManager = new RenderingInfoManager(rendererID, getChunkCallback, retrieveRenderingInfo); m_chunkManager = chunkManager; m_getResourceCallback = getResourceCallback; m_getChunkCallback = getChunkCallback; m_getChunkMimeType = getChunkMimeType; m_storeServerParameters = storeServerParameters; m_allowUserProfileState = allowUserProfileState; m_reportRuntimeSetup = reportRuntimeSetup; m_intermediateFormatVersion = intermediateFormatVersion; }
internal RenderingContext(ReportSnapshot reportSnapshot, string rendererID, DateTime executionTime, EmbeddedImageHashtable embeddedImages, ImageStreamNames imageStreamNames, EventInformation eventInfo, ICatalogItemContext reportContext, Uri contextUri, NameValueCollection reportParameters, Microsoft.ReportingServices.ReportProcessing.ReportProcessing.GetReportChunk getChunkCallback, ChunkManager.RenderingChunkManager chunkManager, IGetResource getResourceCallback, Microsoft.ReportingServices.ReportProcessing.ReportProcessing.GetChunkMimeType getChunkMimeType, Microsoft.ReportingServices.ReportProcessing.ReportProcessing.StoreServerParameters storeServerParameters, bool retrieveRenderingInfo, UserProfileState allowUserProfileState, ReportRuntimeSetup reportRuntimeSetup, IJobContext jobContext, IDataProtection dataProtection) { m_commonInfo = new CommonInfo(rendererID, executionTime, reportContext, reportParameters, getChunkCallback, chunkManager, getResourceCallback, getChunkMimeType, storeServerParameters, retrieveRenderingInfo, allowUserProfileState, reportRuntimeSetup, reportSnapshot.Report.IntermediateFormatVersion); m_inPageSection = false; m_prefix = null; m_eventInfo = eventInfo; m_reportSnapshot = reportSnapshot; m_processedItems = null; m_cachedHiddenInfo = null; m_contextUri = contextUri; m_embeddedImages = embeddedImages; m_imageStreamNames = imageStreamNames; m_currentReportICatalogItemContext = m_commonInfo.TopLevelReportContext; m_jobContext = jobContext; m_dataProtection = dataProtection; }
internal void ExecuteReportInSandboxAppDomain() { SetAppDomain(useSandBoxAppDomain: true); EnsureSandboxAppDomainIfNeeded(); // ??? m_reportRuntimeSetup = ReportRuntimeSetup.CreateForSeparateAppDomainExecution(m_exprHostSandboxAppDomain.AssemblyLoadContext); }
public override ProcessingContext CreateProcessingContext(PreviewItemContext itemContext, ParameterInfoCollection parameters, IEnumerable dataSources, RuntimeDataSourceInfoCollection dataSourceInfoColl, RuntimeDataSetInfoCollection dataSetInfoColl, SharedDataSetCompiler sharedDataSetCompiler, DatasourceCredentialsCollection credentials, ReportProcessing.OnDemandSubReportCallback subReportCallback, IGetResource getResourceFunction, IChunkFactory chunkFactory, ReportRuntimeSetup runtimeSetup, AspNetCore.ReportingServices.Interfaces.CreateAndRegisterStream createStreamCallback) { return(new ProcessingContextForDataSets(itemContext, parameters, new DataSourceCollectionWrapper((ReportDataSourceCollection)dataSources), subReportCallback, this.m_subreportDataCallback, getResourceFunction, chunkFactory, runtimeSetup, (AspNetCore.ReportingServices.Interfaces.CreateAndRegisterStream)createStreamCallback)); }
public abstract ProcessingContext CreateProcessingContext(PreviewItemContext itemContext, ParameterInfoCollection parameters, IEnumerable dataSources, RuntimeDataSourceInfoCollection dataSourceInfoColl, RuntimeDataSetInfoCollection dataSetInfoColl, SharedDataSetCompiler sharedDataSetCompiler, DatasourceCredentialsCollection credentials, ReportProcessing.OnDemandSubReportCallback subReportCallback, IGetResource getResourceFunction, IChunkFactory chunkFactory, ReportRuntimeSetup runtimeSetup, CreateAndRegisterStream createStreamCallback);
public ProcessingContextForDataSets(PreviewItemContext reportContext, ParameterInfoCollection parameters, IEnumerable dataSources, ReportProcessing.OnDemandSubReportCallback subReportCallback, LocalDataRetrievalFromDataSet.GetSubReportDataSetCallback subReportInfoCallback, IGetResource getResourceFunction, IChunkFactory chunkFactory, ReportRuntimeSetup reportRuntimeSetup, AspNetCore.ReportingServices.Interfaces.CreateAndRegisterStream createStreamCallback) : base(reportContext, WindowsIdentity.GetCurrent().Name, parameters, subReportCallback, getResourceFunction, chunkFactory, ReportProcessing.ExecutionType.Live, Thread.CurrentThread.CurrentCulture, UserProfileState.Both, UserProfileState.None, reportRuntimeSetup, createStreamCallback, false, new ViewerJobContextImpl(), new ViewerExtensionFactory(), DataProtectionLocal.Instance) { this.m_dataSources = dataSources; this.m_subReportInfoCallback = subReportInfoCallback; }