Browse Source

Merge pull request #4789 from abpframework/liangshiwei/patch-1

Use eventEntry.EventBus instead of eventPublisher
pull/4822/head
Halil İbrahim Kalkan 6 years ago
committed by GitHub
parent
commit
e2aba6cb20
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Events/EntityChangeEventHelper.cs

2
framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Events/EntityChangeEventHelper.cs

@ -263,7 +263,7 @@ namespace Volo.Abp.Domain.Entities.Events
{ {
try try
{ {
await eventPublisher.PublishAsync( await eventEntry.EventBus.PublishAsync(
eventEntry.EventType, eventEntry.EventType,
Activator.CreateInstance(eventEntry.EventType, eventEntry.EntityOrEto) Activator.CreateInstance(eventEntry.EventType, eventEntry.EntityOrEto)
); );

Loading…
Cancel
Save