Cauldron/Cauldron.Core/CauldronWriter.cs
2023-07-21 13:25:30 -07:00

19 lines
295 B
C#

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