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.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11