Open Closed

Tenant distributed entity events are not triggered #1506


User avatar
0
maxim@kolychev.msk.ru created

This event handler don't work

public class TenantUpdatedHandler : IDistributedEventHandler<EntityUpdatedEto<TenantEto>>, ITransientDependency
    {
        public async Task HandleEventAsync(EntityUpdatedEto<TenantEto> eto)
        {
            //Not triggered
        }
    }

5 Answer(s)
  • User Avatar
    0
    maxim@kolychev.msk.ru created

    This is my code for TenantCreatedHandler. It's triggered

        public class TenantCreatedHandler : IDistributedEventHandler<TenantCreatedEto>, ITransientDependency
        {
            private readonly ITenantRepository _tenantRepository;
    
            public TenantCreatedHandler(ITenantRepository tenantRepository)
            {
                _tenantRepository = tenantRepository;
            }
    
    
            public async Task HandleEventAsync(TenantCreatedEto eto)
            {
                Tenant tenant = await _tenantRepository.GetAsync(eto.Id);
                ...
    

    `

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    What version and distributed event bus provider are you using?

  • User Avatar
    0
    maxim@kolychev.msk.ru created

    Hi,

    v.4.3.1 Local provider

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Did you try :

    Configure<AbpDistributedEntityEventOptions>(options =>
    {
        options.AutoEventSelectors.AddAll();
    });
    

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13