19 lines
297 B
C#
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);
|
|
}
|
|
}
|