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.