public bool Process(List <Entry> entrys, IFormater jsonFormater) { foreach (var entry in entrys.Where(entry => entry.EntryType == Com.Alibaba.Otter.Canal.Protocol.EntryType.Rowdata)) { Console.WriteLine(jsonFormater.Format(entry)); } return(true); }
private void Tester_PageTestedAsync(object sender, PageTestedArg e) { try { var temp = Formater.Format(e.PageTestedResult); Displayer?.Display(temp); lock (locker) Storage?.Add(temp); } catch (Exception exception) { TestRes.Exception = exception; TokenSource.Cancel(); } }