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
When you retry an inbound request, you reuse the same ServiceScope, I think that it's more natural and expected behavior to create a new Scope for each retry otherwise retries won't be independent to each other ( Imagine a DbContext as a ScopedService, we sure want to have a new DbContext ( Unit of Work ) for each retry ).
Yassine
The text was updated successfully, but these errors were encountered:
The problem is that the Scope returned by CreateScope() is IDisposable and should be tracked somewhere to be Disposed when the request is finished. Do you have an idea how we can achieve this ?
Retry feature is obsolete, I would not recommend to retry entire request. Instead use retry in particular place where transient fault can occurs. For instance:
Hi,
When you retry an inbound request, you reuse the same ServiceScope, I think that it's more natural and expected behavior to create a new Scope for each retry otherwise retries won't be independent to each other ( Imagine a DbContext as a ScopedService, we sure want to have a new DbContext ( Unit of Work ) for each retry ).
Yassine
The text was updated successfully, but these errors were encountered: