using System; namespace Papercut.Core; public class PapercutWriter { private Func OutputFunc { get; set; } public PapercutWriter(Func outputFunc) { this.OutputFunc = outputFunc; } public async Task Dump(object obj) { await this.OutputFunc(obj); } }