internal static Object_Fido_ConfigClass.ParseConfigs ParseDetectorConfigs(string detect) { //todo: move this to the database, assign a variable to 'detect' and replace being using in GEtFidoConfigs var query = @"SELECT * from configs_detectors WHERE detector = '" + detect + @"'"; var fidoTemp = GetFidoConfigs(query); var fidoReturn = new Object_Fido_ConfigClass.ParseConfigs(); try { if (fidoTemp != null) { fidoReturn = Object_Fido_ConfigClass.FormatParse(fidoTemp); } if (fidoReturn != null) return fidoReturn; } catch (Exception e) { Fido_EventHandler.SendEmail("Fido Error", "Fido Failed: {0} Unable to gather parse configs." + e); } return null; }
internal static Object_Fido_ConfigClass.ParseConfigs ParseDetectorConfigs(string detect) { //todo: move this to the database, assign a variable to 'detect' and replace being using in GEtFidoConfigs var query = @"SELECT * from configs_detectors WHERE detector = '" + detect + @"'"; var fidoTemp = GetFidoConfigs(query); var fidoReturn = new Object_Fido_ConfigClass.ParseConfigs(); try { if (fidoTemp != null) { fidoReturn = Object_Fido_ConfigClass.FormatParse(fidoTemp); } if (fidoReturn != null) { return(fidoReturn); } } catch (Exception e) { Fido_EventHandler.SendEmail("Fido Error", "Fido Failed: {0} Unable to gather parse configs." + e); } return(null); }