示例#1
0
        public Task TriggerEventsAsync(EntityChangeReport changeReport)
        {
            TriggerEventsInternal(changeReport);

            if (changeReport.IsEmpty() || _unitOfWorkManager.Current == null)
            {
                return(Task.FromResult(0));
            }

            return(_unitOfWorkManager.Current.SaveChangesAsync());
        }
示例#2
0
        public virtual void TriggerEvents(EntityChangeReport changeReport)
        {
            TriggerEventsInternal(changeReport);

            if (changeReport.IsEmpty() || _unitOfWorkManager.Current == null)
            {
                return;
            }

            _unitOfWorkManager.Current.SaveChanges();
        }
示例#3
0
 public virtual void TriggerEventsInternal(EntityChangeReport changeReport)
 {
     TriggerEntityChangeEvents(changeReport.ChangedEntities);
     TriggerDomainEvents(changeReport.DomainEvents);
 }
示例#4
0
 public Task TriggerEventsAsync(EntityChangeReport changeReport)
 {
     return(Task.FromResult(0));
 }
示例#5
0
 public void TriggerEvents(EntityChangeReport changeReport)
 {
 }