public void OnPostInsert( PostInsertEvent @event) { var properties = @event.ToPropertyEntry().ToList(); Raise(@event, typeof(AfterAddedEntityDomainEvent <>), @event.Entity, properties); }
public async Task OnPostInsertAsync( PostInsertEvent @event, CancellationToken cancellationToken) { var properties = @event.ToPropertyEntry().ToList(); await RaiseAsync(@event, typeof(AfterAddedEntityDomainEvent <>), @event.Entity, properties); }