Esempio n. 1
0
 public async Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken)
 {
     await PublishEvents(@event.Entity, cancellationToken);
 }
Esempio n. 2
0
 public void OnPostDelete(PostDeleteEvent @event)
 {
     log.Debug("PostCommitDelete fired.");
 }
Esempio n. 3
0
 public async Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken)
 {
     Console.WriteLine($"Received PostDelete event for entity {JsonConvert.SerializeObject( @event.Entity, Formatting.None, settings )}");
     await Task.CompletedTask;
 }
Esempio n. 4
0
 public Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken)
 {
     OnPostDelete(@event);
     return(Task.CompletedTask);
 }
Esempio n. 5
0
 public void OnPostDelete(PostDeleteEvent @event)
 {
     DispatchEvents(@event.Entity as AggregateRoot);
 }
Esempio n. 6
0
 public void OnPostDelete(PostDeleteEvent @event)
 {
 }
Esempio n. 7
0
 public void OnPostDelete(PostDeleteEvent ev)
 {
     DispatchEvents(ev.Entity as AggregateRoot);
 }
 public async Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken) =>
 await PostCommitAsync(@event.Entity, cancellationToken);
 public void OnPostDelete(PostDeleteEvent @event) => PostCommit(@event.Entity);
 /// <inheritdoc />
 public async Task OnPostDeleteAsync(PostDeleteEvent e, CancellationToken cancellationToken) =>
 await Task.Run(() => OnPostDelete(e), cancellationToken);
Esempio n. 11
0
 public void OnPostDelete(PostDeleteEvent @event)
 {
     //no-op
 }
Esempio n. 12
0
 public void OnPostDeleteLogEvent(PostDeleteEvent @event)
 {
     PostDatabaseOperationEvent(@event, null, @event.DeletedState, "DELETE");
 }
Esempio n. 13
0
 /// <summary>
 /// Removes Full-Text Indices on deleted entities.
 /// </summary>
 /// <param name="e">
 /// Post delete parameters
 /// </param>
 public void OnPostDelete(PostDeleteEvent e)
 {
     _fullTextModel.DeleteIndexForEntity(e.Entity);
 }
Esempio n. 14
0
        public void OnPostDelete(PostDeleteEvent @event)
        {
            var t = PublishEvents(@event.Entity, CancellationToken.None);

            Task.WaitAll(t);
        }
Esempio n. 15
0
 public IEnumerable <AuditLogEntry> CreateEntries(PostDeleteEvent e)
 {
     yield break;
 }
 public void OnPostDelete(PostDeleteEvent @event)
 {
     AuditTrailManager?.OnPostDeleteLogEvent(@event);
 }
Esempio n. 17
0
        public void OnPostDelete(IUnitOfWorkTracked uow, PostDeleteEvent deleteEvent)
        {
            var change = new EntityChangeEvent(deleteEvent);

            entityChanges.Add(change);
        }
 public void OnPostDelete(PostDeleteEvent @event)
 {
     Dispatch(typeof(IOnEntityDeleted <>), "Deleted", @event.Entity);
 }
Esempio n. 19
0
 public async Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken) => await DispatchEvents(@event);
Esempio n. 20
0
 public async Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken)
 {
     await Task.Run(() => OnPostDelete(@event), cancellationToken);
 }
Esempio n. 21
0
 public Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Task.Run(() => OnPostDelete(@event), cancellationToken));
 }
 public DeleteWorkUnit(PostDeleteEvent @event, VersionedClass versionedClass) : base(@event, versionedClass)
 {
     DeletedState = Tools.CloneArray(@event.DeletedState);
 }
Esempio n. 23
0
 public async Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken)
 {
     DispatchEvents(@event.Entity as AggregateRoot);
 }
 public Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken)
 {
     return(PublishEventAsync(@event.Entity, @event.Session, PostEntityActionType.Delete));
 }
Esempio n. 25
0
 public void OnPostDelete(PostDeleteEvent ev)
 {
     DispatchEvents(ev.Entity);
 }
 public void OnPostDelete(PostDeleteEvent @event)
 {
     PublishEventAsync(@event.Entity, @event.Session, PostEntityActionType.Delete).GetAwaiter().GetResult();
 }
Esempio n. 27
0
 public void OnPostDelete(PostDeleteEvent @event)
 {
     Console.WriteLine($"Received PostDelete event for entity {JsonConvert.SerializeObject( @event.Entity, Formatting.None, settings )}");
 }
Esempio n. 28
0
 public abstract void Deleted(PostDeleteEvent eventArgs);
Esempio n. 29
0
 public Task OnPostDeleteAsync(PostDeleteEvent @event, CancellationToken cancellationToken)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Called when [post delete].
 /// </summary>
 /// <param name="event">The @event.</param>
 public void OnPostDelete(PostDeleteEvent @event)
 {
     AuditPatientAccess(@event.Entity, @event, PatientAccessEventType.DeleteEvent, () => GetAuditNoteForEntity(@event.Entity));
 }