Serilog.Exceptions.Destructurers.IExceptionDestructurer
Interface that all exception destructurers that want to be registered must implement. Exception destructurer
must explicitly declare which types it can destructure using TargetTypes property.
namespace Serilog.Exceptions.Destructurers
{
public interface IExceptionDestructurer
{
Type[] TargetTypes { get; }
void Destructure(Exception exception, IExceptionPropertiesBag propertiesBag, Func<Exception, IReadOnlyDictionary<string, object>> destructureException);
}
}