public static ReportRuntimeSetup GetDefault() { if (DefaultRuntimeSetup == null) { DefaultRuntimeSetup = new ReportRuntimeSetup(null, null, restrictCodeModulesInCurrentAppDomain: false, requireExpressionHostWithRefusedPermissions: false); } return(DefaultRuntimeSetup); }
internal RenderingContext(ICatalogItemContext reportContext, string reportDescription, EventInformation eventInfo, ReportRuntimeSetup reportRuntimeSetup, ReportProcessing.StoreServerParameters storeServerParameters, UserProfileState allowUserProfileState, PaginationMode clientPaginationMode, int previousTotalPages) { Global.Tracer.Assert(reportContext != null, "(null != reportContext)"); m_reportContext = reportContext; m_reportDescription = reportDescription; m_eventInfo = eventInfo; m_storeServerParameters = storeServerParameters; m_allowUserProfileState = allowUserProfileState; m_reportRuntimeSetup = reportRuntimeSetup; m_clientPaginationMode = clientPaginationMode; m_previousTotalPages = previousTotalPages; }
public DataSetContext(string targetChunkNameInSnapshot, string cachedDataChunkName, bool mustCreateDataChunk, IRowConsumer consumerRequest, ICatalogItemContext itemContext, RuntimeDataSourceInfoCollection dataSources, string requestUserName, DateTime executionTimeStamp, ParameterInfoCollection parameters, IChunkFactory createChunkFactory, ReportProcessing.ExecutionType interactiveExecution, CultureInfo culture, UserProfileState allowUserProfileState, UserProfileState initialUserProfileState, IProcessingDataExtensionConnection createDataExtensionInstanceFunction, CreateAndRegisterStream createStreamCallbackForScalability, ReportRuntimeSetup dataSetRuntimeSetup, IJobContext jobContext, IDataProtection dataProtection) { m_targetChunkNameInSnapshot = targetChunkNameInSnapshot; m_cachedDataChunkName = cachedDataChunkName; m_mustCreateDataChunk = mustCreateDataChunk; m_consumerRequest = consumerRequest; m_itemContext = itemContext; m_dataSources = dataSources; m_requestUserName = requestUserName; m_executionTimeStamp = executionTimeStamp; m_parameters = parameters; m_createChunkFactory = createChunkFactory; m_interactiveExecution = interactiveExecution; m_culture = culture; m_allowUserProfileState = allowUserProfileState; m_initialUserProfileState = initialUserProfileState; m_createDataExtensionInstanceFunction = createDataExtensionInstanceFunction; m_createStreamCallbackForScalability = createStreamCallbackForScalability; m_dataSetRuntimeSetup = dataSetRuntimeSetup; m_jobContext = jobContext; m_dataProtection = dataProtection; }
public ReportRuntimeSetup(ReportRuntimeSetup originalSetup, AssemblyLoadContext assemblyLoadContext) : this(assemblyLoadContext, originalSetup.m_exprHostEvidence, originalSetup.m_restrictCodeModulesInCurrentAppDomain, originalSetup.m_requireExpressionHostWithRefusedPermissions) { if (originalSetup.m_currentAppDomainTrustedCodeModules == null) { return; } StringEnumerator enumerator = originalSetup.m_currentAppDomainTrustedCodeModules.GetEnumerator(); try { while (enumerator.MoveNext()) { string current = enumerator.Current; AddTrustedCodeModuleInCurrentAppDomain(current); } } finally { (enumerator as IDisposable)?.Dispose(); } }
internal ProcessingContext(ICatalogItemContext reportContext, string requestUserName, ParameterInfoCollection parameters, ReportProcessing.OnDemandSubReportCallback subReportCallback, IGetResource getResourceFunction, IChunkFactory createChunkFactory, ReportProcessing.ExecutionType interactiveExecution, CultureInfo culture, UserProfileState allowUserProfileState, UserProfileState initialUserProfileState, ReportRuntimeSetup reportRuntimeSetup, CreateAndRegisterStream createStreamCallback, bool isHistorySnapshot, IJobContext jobContext, IExtensionFactory extFactory, IDataProtection dataProtection) { Global.Tracer.Assert(reportContext != null, "(null != reportContext)"); m_reportContext = reportContext; m_requestUserName = requestUserName; m_parameters = parameters; m_queryParameters = m_parameters.GetQueryParameters(); m_subReportCallback = subReportCallback; m_getResourceFunction = getResourceFunction; m_chunkFactory = createChunkFactory; m_interactiveExecution = interactiveExecution; m_userLanguage = culture; m_allowUserProfileState = allowUserProfileState; m_initialUserProfileState = initialUserProfileState; m_reportRuntimeSetup = reportRuntimeSetup; m_createStreamCallback = createStreamCallback; m_isHistorySnapshot = isHistorySnapshot; ChunkFactoryAdapter @object = new ChunkFactoryAdapter(m_chunkFactory); m_createReportChunkCallback = @object.CreateReportChunk; m_jobContext = jobContext; m_extFactory = extFactory; m_dataProtection = dataProtection; }
internal ReportProcessingContext(ICatalogItemContext reportContext, string requestUserName, ParameterInfoCollection parameters, RuntimeDataSourceInfoCollection dataSources, RuntimeDataSetInfoCollection sharedDataSetReferences, ReportProcessing.OnDemandSubReportCallback subReportCallback, IGetResource getResourceFunction, IChunkFactory createChunkFactory, ReportProcessing.ExecutionType interactiveExecution, CultureInfo culture, UserProfileState allowUserProfileState, UserProfileState initialUserProfileState, IProcessingDataExtensionConnection createDataExtensionInstanceFunction, ReportRuntimeSetup reportRuntimeSetup, CreateAndRegisterStream createStreamCallback, bool isHistorySnapshot, IJobContext jobContext, IExtensionFactory extFactory, IDataProtection dataProtection, ISharedDataSet dataSetExecute) : base(reportContext, requestUserName, parameters, subReportCallback, getResourceFunction, createChunkFactory, interactiveExecution, culture, allowUserProfileState, initialUserProfileState, reportRuntimeSetup, createStreamCallback, isHistorySnapshot, jobContext, extFactory, dataProtection) { m_dataSources = dataSources; m_sharedDataSetReferences = sharedDataSetReferences; m_createDataExtensionInstanceFunction = createDataExtensionInstanceFunction; m_dataSetExecute = dataSetExecute; }