public static string TestCleanBoilerPlate(string report) { var redactionTool = new Redaction(); // Make sure the database boilerplate is loaded. // This will only run once per dictionary instance therefore use the ReloadBoilerPlateCache method to refresh from the database return(redactionTool.CleanOutAllBoilerPlate(report)); }
public static string CleanBoilerPlate(string report) { var redactionTool = new Redaction(); // Make sure the database boilerplate is loaded. // This will only run once per dictionary instance therefore use the ReloadBoilerPlateCache method to refresh from the database var b = RedactionDictionary.GetInstance().AttemptToLoadBoilerPlateRegexFromDatabase(); return(b ?? redactionTool.CleanOutAllBoilerPlate(report)); }