public async Task TriggerEventsAsync(EntityChangeReport changeReport) { await TriggerEventsInternalAsync(changeReport); if (changeReport.IsEmpty() || _unitOfWorkManager.Current == null) { return; } await _unitOfWorkManager.Current.SaveChangesAsync(); }
public Task TriggerEventsAsync(EntityChangeReport changeReport) //TODO: Trigger events really async! { TriggerEventsInternal(changeReport); if (changeReport.IsEmpty() || _unitOfWorkManager.Current == null) { return(Task.FromResult(0)); } return(_unitOfWorkManager.Current.SaveChangesAsync()); }
public async Task TriggerEventsAsync(EntityChangeReport changeReport) { await TriggerEventsInternalAsync(changeReport).ConfigureAwait(false); if (changeReport.IsEmpty() || UnitOfWorkManager.Current == null) { return; } await UnitOfWorkManager.Current.SaveChangesAsync().ConfigureAwait(false); }
public virtual void TriggerEvents(EntityChangeReport changeReport) { TriggerEventsInternal(changeReport); if (changeReport.IsEmpty() || _unitOfWorkManager.Current == null) { return; } _unitOfWorkManager.Current.SaveChanges(); }