Beispiel #1
0
        private List <string> GetReportUriList(ICspReportUriDirectiveConfiguration directive,
                                               string builtinReportHandlerUri = null)
        {
            if (directive == null || !directive.Enabled)
            {
                return(null);
            }

            var reportUris = new List <string>();

            if (directive.EnableBuiltinHandler)
            {
                reportUris.Add(builtinReportHandlerUri);
            }

            if (directive.ReportUris != null)
            {
                reportUris.AddRange(directive.ReportUris);
            }

            return(reportUris.Count > 0 ? reportUris : null);
        }
Beispiel #2
0
        private List<string> GetReportUriList(ICspReportUriDirectiveConfiguration directive,
            string builtinReportHandlerUri = null)
        {
            if (directive == null || !directive.Enabled)
                return null;

            var reportUris = new List<string>();

            if (directive.EnableBuiltinHandler)
            {
                reportUris.Add(builtinReportHandlerUri);
            }

            if (directive.ReportUris != null)
            {
                reportUris.AddRange(directive.ReportUris);
            }

            return reportUris.Count > 0 ? reportUris : null;
        }
        internal void SetCspReportUriOverride(HttpContextBase context, ICspReportUriDirectiveConfiguration reportUriConfig, bool reportOnly)
        {
            var overrides = _contextConfigurationHelper.GetCspConfigurationOverride(context, reportOnly, false);

            overrides.ReportUriDirective = reportUriConfig;
        }
        internal void SetCspReportUriOverride(HttpContextBase context, ICspReportUriDirectiveConfiguration reportUriConfig, bool reportOnly)
        {
            var overrides = _contextConfigurationHelper.GetCspConfigurationOverride(context, reportOnly, false);

            overrides.ReportUriDirective = reportUriConfig;
        }