Atividades de "raju.thinnaluri@gmail.com"

Hi,

The problem was fixed: https://github.com/abpframework/abp/pull/14022

You can upgrade your project to the latest version.

you can try this if you don't want to upgrade project:

[ExposeServices(typeof(ChatUserSynchronizer), typeof(MyChatUserSynchronizer))] 
public class MyChatUserSynchronizer : 
    ChatUserSynchronizer 
{ 
    protected ICurrentTenant CurrentTenant { get; } 
 
 
    public MyChatUserSynchronizer( 
        IChatUserRepository userRepository, 
        IChatUserLookupService userLookupService, 
        ICurrentTenant currentTenant) : base(userRepository, userLookupService) 
    { 
        CurrentTenant = currentTenant; 
    } 
 
    public override async Task HandleEventAsync(EntityUpdatedEto<UserEto> eventData) 
    { 
        using(CurrentTenant.Change(eventData.Entity.TenantId)) 
        { 
            var user = await UserRepository.FindAsync(eventData.Entity.Id); 
            if (user == null) 
            { 
                user = await UserLookupService.FindByIdAsync(eventData.Entity.Id); 
                if (user == null) 
                { 
                    return; 
                } 
            } 
 
            if (user.Update(eventData.Entity)) 
            { 
                await UserRepository.UpdateAsync(user); 
            } 
        } 
 
    } 
} 

Thank You. Now it's working fine.

Mostrando 51 até 51 de 51 registros
Made with ❤️ on ABP v8.2.0-preview Updated on março 25, 2024, 15:11