Cauldron/Papercut.Core/PapercutWriter.cs

19 lines
295 B
C#
Raw Normal View History

2023-07-19 19:30:39 +00:00
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);
}
}