Activities of "liangshiwei"

Can you remove PublishTrimmed or set it to false.

Hi,

Can you share the full steps or a project that can reproduce the problem with me? shiwei.liang@volosoft.com thanks

Answer

Hi,

There is no need to use EventBus, it will increase your code complexity.

See the document: https://blazorise.com/docs/components/select

Select component has a SelectedValueChanged event, and you can use it.

.

Hi,

It's a problem, https://github.com/abpframework/abp/issues/14021. we will fix it. BTW, your ticket refuned.

For now, you can try:

[Dependency(TryRegister = true)]
[ExposeServices(typeof(ILocalEventBus), typeof(LocalEventBus))]
public class MyLocalEventBus : LocalEventBus, ISingletonDependency
{
    public MyLocalEventBus(
        IOptions<AbpLocalEventBusOptions> options,
        IServiceScopeFactory serviceScopeFactory, 
        ICurrentTenant currentTenant, 
        IUnitOfWorkManager unitOfWorkManager, IEventHandlerInvoker eventHandlerInvoker) : base(options, serviceScopeFactory, currentTenant, unitOfWorkManager, eventHandlerInvoker)
    {
    }

    protected override Guid? GetEventDataTenantId(object eventData)
    {
        var tenantId = base.GetEventDataTenantId(eventData);

        if (tenantId.HasValue)
        {
            return tenantId;
        }
        
        if (eventData is EntityUpdatedEto<UserEto> data)
        {
            return data.Entity.TenantId;
        }

        return null;
    }
}


context.Services.AddSingleton<ILocalEventBus, MyLocalEventBus>();

Hi,

I agree with what mookid8000 said, If rebus can't connect to RabbitMQ, it's better to throw an exception to let the application stop, in this way you can quickly find the problem and fix it.

But However, you can do it:

Open your module class:

public override void OnPreApplicationInitialization(ApplicationInitializationContext context)
{
    Policy.Handle<Exception>().WaitAndRetry(5, retryCount => TimeSpan.FromSeconds(retryCount))
        .Execute(() =>
        {
            context.ServiceProvider.UseRebus();
        });
    
}

Hi,

I will check it out.

Hi, @ademaygun

You can just use the ABP's BackgroundJob system instead of Hangfire, it can work with the ABP Unitofwork system.

Hi,

Could you share the steps to reproduce or a project that can reproduce the problem with me via email? shiwei.liang@volosoft.com thanks.

How can we make background job work in the same transaction with our business code; so it will not created or rolledback when we get any error on method completion (CompleAsync)

Hi,

I'm sorry to say, Background jobs are independent of application threads, so they cannot use the same transaction.

You can try this:

public async Task CreateAsync()
{
    using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: true))
    {
        //...
        await productRepository.InsertAsync(new Product("Product1"));
        await uow.CompleteAsync();
    }
            
    await backgroundJobManager.EnqueueAsync(ProductJobArgs);
}

Hi,

You can check these documents: https://docs.abp.io/en/abp/6.0/Migration-Guides/Abp-6_0 https://docs.abp.io/en/commercial/6.0/migration-guides/v6_0

Showing 4781 to 4790 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 07, 2025, 08:20