Starts in:
2 DAYS
0 HR
21 MIN
42 SEC
Starts in:
2 D
0 H
21 M
42 S
Open Closed

Distributed event handler is not triggering anymore on aggregate entity changes? #7462


User avatar
0
s.beckers created
  • ABP Framework version: v8.1.1
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Steps to reproduce the issue: Since the upgrade from v7.x.x to v8.1.1 we have a lot of event handlers which are not triggering anymore. Something has changed? In our case we have the following Aggregate:
[Audited]
public class Company : FullAuditedAggregateRoot<Guid>, IMultiTenant
{
  ...
  public Company(
    Guid id,
    string name)
  {
    Id = id;
    Name = name;
  }
  ...
  public Address? Address { get; set; }
  ...
  public virtual ICollection<CompanyEmail> Emails { get; private set; } = new Collection<CompanyEmail>();
  ...
}

And the following handler:

public virtual async Task HandleEventAsync(EntityUpdatedEto<CompanyEto> eventData)
{
  ...
}

When we make an update in the Address (owned entity) or make changes to the Emails list and then updating the company by:

await _companyRepository.UpdateAsync(company);

The event handler is not triggered anymore since the upgrade to v8.1.1. Any idea why?


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to upgrade to v8.1.4 and try again.

  • User Avatar
    0
    s.beckers created

    Hi,

    Problem solved by upgrading ABP packages to v8.1.4. Thanks!

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06