public static void TraceCompatibilityVersion(IConfiguration configuration)
 {
     if (Global.Tracer.TraceVerbose)
     {
         int compatibilityVersion = ReportProcessingCompatibilityVersion.GetCompatibilityVersion(configuration);
         Global.Tracer.Trace(TraceLevel.Verbose, "Processing compatibility version information: ProcessingUpgradeState: {0} Active Compat Version Number: {1}", (configuration == null) ? "<null>" : configuration.UpgradeState.ToString(), compatibilityVersion);
     }
 }
 public static int GetCompatibilityVersion(IConfiguration configuration)
 {
     if (configuration == null)
     {
         return(ReportProcessingCompatibilityVersion.CurrentVersion);
     }
     return(ReportProcessingCompatibilityVersion.TranslateToVersionNumber(configuration.UpgradeState));
 }