src/OneBeyond.Studio.EntityAuditing/OneBeyond.Studio.EntityAuditing.Domain/AuditEventSerializers/IAuditEventSerializer.cs
using System.Threading;
using System.Threading.Tasks;
namespace OneBeyond.Studio.EntityAuditing.Domain.AuditEventSerializers;
public interface IAuditEventSerializer<TEntity, TResult>
where TEntity : class
where TResult : class
{
ValueTask<IAuditChangeResult<TResult>> SerializeAsync(TEntity entity, AuditEvent auditEntityEvent, CancellationToken cancellationToken);
}