Cauldron/Papercut.Core/PapercutWriter.cs
2023-07-19 12:30:39 -07:00

19 lines
295 B
C#

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