onebeyond/onebeyond-studio-core

View on GitHub
src/OneBeyond.Studio.EntityAuditing/OneBeyond.Studio.EntityAuditing.Domain/AuditEventSerializers/IAuditEventSerializer.cs

Summary

Maintainability
A
0 mins
Test Coverage
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);
}