Esempio n. 1
0
 private static void Process(IEnumerable <string> macroList, IMacroResolver resolver, ILogger logger)
 {
     foreach (var macro in macroList)
     {
         ValidationResult[] errors;
         var result = resolver.Resolve(macro, out errors);
         logger.Info(result);
         if (errors == null)
         {
             continue;
         }
         foreach (var error in errors)
         {
             logger.Warn(error.ErrorMessage);
         }
     }
 }
Esempio n. 2
0
 public static string Resolve(this IMacroResolver resolver, string source)
 {
     ValidationResult[] errors;
     return(resolver.Resolve(source, out errors));
 }