Activities of "badassgr1"

Hi enisn :

for example i got a IDistributedEventHandler witch got an error

public class OrderHandler : IDistributedEventHandler, ITransientDependency
{
    private readonly OrderReservationManager _orderReservationManager;


    public OrderHandler(OrderReservationManager orderReservationManager)
    {
        _orderReservationManager = orderReservationManager;
    }

    public async Task HandleEventAsync(OrderEto eventData)
    {
        _orderReservationManager.ThrowError();
    }
}

call by this from another domain :

public class StockAppService : IStockAppService
{
    private readonly IStockRepository _stockRepository;
    public StockAppService(IStockRepository stockRepository)
    {
     _stockRepository = stockRepository;
    }

    public virtual async Task<Guid> OrderItemAsync(FieldPlanCreateDto input)
    {
        await _stockRepository.UpdateStock(input.item);
        AddDistributedEvent(new OrderEto
        {
            Item = input.item
        });		
    }
}

if i got an error on StockAppService , error is return correctly(_AbpErrorFormat, error.Data in json) but an error HandleEventAsync always return TypeError: Failed to fetch.

Hi, i'd like to catch a BusinessException in a DistributedHandler(IDistributedEventHandler) from an api call , i put [UnitOfWork(true)] attribute in both classes and verify i m in same uow but i only got error : TypeError: Failed to fetch, Any clue ? Thanks. Fred.

Showing 1 to 2 of 2 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.0.0-preview. Updated on September 04, 2025, 16:11