private void ProcessResult(InvokeResult result) { _Formatter.Result(result); _FailCount += result.Fail; _ErrorCount += result.Error; _TotalCount += result.Total; if (_Results != null) { _Results.AddRange(result.AsRecord()); } }
public override void Write(object o, bool enumerate) { if (!(o is InvokeResult result)) { return; } _Formatter.Result(result); _FailCount += result.Fail; _ErrorCount += result.Error; _TotalCount += result.Total; if (_InnerWriter != null) { _InnerWriter.Write(o, enumerate); } }