public Task TriggerEventsAsync(EntityChangeReport changeReport) { this.TriggerEventsInternal(changeReport); if (changeReport.IsEmpty() || this._unitOfWorkManager.Current == null) { return((Task)Task.FromResult <int>(0)); } return(this._unitOfWorkManager.Current.SaveChangesAsync()); }
public virtual void TriggerEvents(EntityChangeReport changeReport) { this.TriggerEventsInternal(changeReport); if (changeReport.IsEmpty() || this._unitOfWorkManager.Current == null) { return; } this._unitOfWorkManager.Current.SaveChanges(); }
public virtual void TriggerEventsInternal(EntityChangeReport changeReport) { this.TriggerEntityChangeEvents(changeReport.ChangedEntities); this.TriggerDomainEvents(changeReport.DomainEvents); }
public Task TriggerEventsAsync(EntityChangeReport changeReport) { return((Task)Task.FromResult <int>(0)); }
public void TriggerEvents(EntityChangeReport changeReport) { }