private static ReportingSchema GetReportingSchema()
        {
            HttpContext httpContext             = HttpContext.Current;
            string      currentReportingVersion = ReportingVersion.GetCurrentReportingVersion(httpContext);

            return(ReportingSchema.GetReportingSchema(currentReportingVersion));
        }
示例#2
0
        public static ReportingSchema GetCurrentReportingSchema(HttpContext httpContext)
        {
            ReportingSchema schema = null;

            ElapsedTimeWatcher.Watch(RequestStatistics.RequestStatItem.GetReportingSchemaLatency, delegate
            {
                string currentReportingVersion = ReportingVersion.GetCurrentReportingVersion(httpContext);
                schema = ReportingSchema.GetReportingSchema(currentReportingVersion);
            });
            return(schema);
        }