You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public Task Handle(ProductCreatedmessage,CancellationTokentoken=default){if(message is not null){
_productUnitOfWork.ProductRepository.Add(new Product(message.Id, message.Name, message.Description));return _productUnitOfWork.SaveChangesAsync(token);}return Task.CompletedTask;}
My UI sometimes isn't updated. It seems your library isn't awaiting the returned Task. InvokeHandler in RouteRegistrar at least isn't.
Am I on the wrong path or is this something you can help me fixing it?
The text was updated successfully, but these errors were encountered:
Hi. It's a bit hard to tell without seeing more of your code, I've tried reproducing your error but can't find any problems with async code and when I try to do something that takes time in a handler, its seems to be awaited. The RouteRegistrar-code is unfortunately very complex and its been 5 years or so since I touched it last, so its I don't have complete control at the moment, but can't trigger your bug. If you could make me a test or something similar that fails that would be greatly appreciated.
I have the following event handler:
My UI sometimes isn't updated. It seems your library isn't awaiting the returned Task. InvokeHandler in RouteRegistrar at least isn't.
Am I on the wrong path or is this something you can help me fixing it?
The text was updated successfully, but these errors were encountered: