public override async Task RenderMessageAsync(Message message) { // Render header if it's the first entry if (!_isHeaderRendered) { await Writer.WriteLineAsync(CsvRenderingLogic.FormatHeader(Context)); _isHeaderRendered = true; } await Writer.WriteLineAsync(CsvRenderingLogic.FormatMessage(Context, message)); }
public override async Task WriteMessageAsync(Message message) { await _writer.WriteLineAsync(CsvRenderingLogic.FormatMessage(Context, message)); }