Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public InterestingEntriesCore(IEntryManager entryManagerInstance, InterestingEntriesAlgorithm algororithm)
 {
     EntryManagerInstance = entryManagerInstance;
     Algorithm = algororithm;
 }
Ejemplo n.º 4
0
 public InterestingEntriesCore(IEntryManager entryManagerInstance, InterestingEntriesAlgorithm algororithm)
 {
     EntryManagerInstance = entryManagerInstance;
     Algorithm            = algororithm;
 }