Cauldron/Cauldron.Core/CauldronWriter.cs
2023-07-24 15:56:12 -07:00

19 lines
297 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 Output(object obj)
{
await this.OutputFunc(obj);
}
}