Example #1
0
 public string ReloadBoilerPlateCache()
 {
     _boilerPlateRegexLoadedFromDatabase = false;
     BoilerPlateRegexCache.Clear();
     LoadBoilerPlateFromFile();
     return(AttemptToLoadBoilerPlateRegexFromDatabase());
 }
Example #2
0
 private void LoadBoilerPlateFromFile()
 {
     foreach (var marker in Resources.custom_full_text_markers.Split(new[] { "\n" },
                                                                     StringSplitOptions.RemoveEmptyEntries))
     {
         BoilerPlateRegexCache.Add(new Regex(marker.Trim(), RegexOptions.Compiled));
     }
 }
Example #3
0
 public void AddToBoilerPlate(string item)
 {
     BoilerPlateRegexCache.Add(new Regex(item, RegexOptions.Compiled));
 }