public void CaptureConversions(File file, Action<Writer> action) { file.WriteTextTo(tw => { var w = new Writer(tw, _cache); action(w); }); }
public void WriteError(File errorFile, ErrorFileEntry error) { var jsonError = JsonConvert.SerializeObject(error, Formatting.Indented); errorFile.WriteTextTo(writer => writer.Write(jsonError)); }