常用方法
常用方法
常用方法
常用方法
private async Task DispatchPostSaveEventsAsync(CancellationToken cancellationToken = default) { var entities = ChangeTracker .Entries <EntityBase>() .Where(x => x.Entity.PostSaveDomainEvents != null && x.Entity.PostSaveDomainEvents.Any()) .Select(x => x.Entity); await _eventDispatcher.DispatchPostSaveAsync(entities, cancellationToken); }