public static InterestingEntriesAlgorithm GetAlgororithmFromString(string mode, InterestingEntriesAlgorithm defaultAlgorithm = InterestingEntriesAlgorithm.Comments) { if (!string.IsNullOrEmpty(mode)) { try { return (InterestingEntriesAlgorithm)Enum.Parse(typeof(InterestingEntriesAlgorithm), mode, true); } catch (ArgumentException ex) { Logger.Warn("Failed to parse Mode as InterestingEntriesAlgorithm: " + mode, ex); } } return defaultAlgorithm; }
public static InterestingEntriesAlgorithm GetAlgororithmFromString(string mode, InterestingEntriesAlgorithm defaultAlgorithm = InterestingEntriesAlgorithm.Comments) { if (!string.IsNullOrEmpty(mode)) { try { return((InterestingEntriesAlgorithm)Enum.Parse(typeof(InterestingEntriesAlgorithm), mode, true)); } catch (ArgumentException ex) { Logger.Warn("Failed to parse Mode as InterestingEntriesAlgorithm: " + mode, ex); } } return(defaultAlgorithm); }
public InterestingEntriesCore(IEntryManager entryManagerInstance, InterestingEntriesAlgorithm algororithm) { EntryManagerInstance = entryManagerInstance; Algorithm = algororithm; }
public InterestingEntriesCore(IEntryManager entryManagerInstance, InterestingEntriesAlgorithm algororithm) { EntryManagerInstance = entryManagerInstance; Algorithm = algororithm; }