22 lines
565 B
C#
22 lines
565 B
C#
using System.Threading.Tasks;
|
|
using Audit.Core;
|
|
|
|
namespace EnVisage.Code.Audit.DataProviders
|
|
{
|
|
public class AuditCustomDataProvider : AuditDataProvider
|
|
{
|
|
public override object InsertEvent(AuditEvent auditEvent)
|
|
{
|
|
var userId = Utils.CurrentUserId();
|
|
Task.Run(() => AuditProxy.LogAudit(auditEvent, userId));
|
|
return new { };
|
|
}
|
|
// Replaces an existing event given the ID and the event
|
|
public override void ReplaceEvent(object eventId, AuditEvent auditEvent)
|
|
{
|
|
// Override an existing event
|
|
|
|
//string json = auditEvent.ToJson();
|
|
}
|
|
}
|
|
} |