Starts in:
0 DAY
17 HRS
49 MIN
40 SEC
Starts in:
0 D
17 H
49 M
40 S
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 v9.1.0-preview. Updated on November 20, 2024, 13:06