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); } } }
public static string Resolve(this IMacroResolver resolver, string source) { ValidationResult[] errors; return(resolver.Resolve(source, out errors)); }