private static ReportingSchema GetReportingSchema() { HttpContext httpContext = HttpContext.Current; string currentReportingVersion = ReportingVersion.GetCurrentReportingVersion(httpContext); return(ReportingSchema.GetReportingSchema(currentReportingVersion)); }
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); }
private string GetCacheKey() { HttpContext httpContext = HttpContext.Current; string currentReportingVersion = ReportingVersion.GetCurrentReportingVersion(httpContext); return(string.Format(CultureInfo.InvariantCulture, "Exchange_Reporting_Metadata_{0}_{1}", new object[] { RbacPrincipal.Current.CacheKeys[0], currentReportingVersion })); }