public static void Initialize(string fileName)
 {
     try
     {
         using (FileStream fileStream = new FileStream(fileName, FileMode.Open))
         {
             XmlDictionaryReader reader = XmlDictionaryReader.CreateTextReader(fileStream, new XmlDictionaryReaderQuotas());
             AuditUploaderConfig.InitializeWithReader(reader);
             fileStream.Close();
         }
     }
     catch (DirectoryNotFoundException ex)
     {
         EventLogger.Logger.LogEvent(LogUploaderEventLogConstants.Tuple_ConfigFileNotFound, fileName, new object[]
         {
             ex.Message
         });
         AuditUploaderConfig.InitializeWithReader(null);
     }
     catch (FileNotFoundException ex2)
     {
         EventLogger.Logger.LogEvent(LogUploaderEventLogConstants.Tuple_ConfigFileNotFound, fileName, new object[]
         {
             ex2.Message
         });
         AuditUploaderConfig.InitializeWithReader(null);
     }
 }
 public static Actions GetAction(string component, string tenant, string user, string operation)
 {
     if (AuditUploaderConfig.filteringRules == null)
     {
         EventLogger.Logger.LogEvent(LogUploaderEventLogConstants.Tuple_InvalidRuleCollection, "Audit Uploader rules collection was not properly generated.", new object[0]);
         AuditUploaderConfig.InitializeWithReader(null);
     }
     return(AuditUploaderConfig.filteringRules.GetOperation(component, tenant, user, operation, DateTime.UtcNow));
 }