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 the scope is created in UseBranchWithServices, it changes the context.RequestServices service provider to be the scope's service provider instead then proceeds with the rest of the pipeline. This is fine, but when the scope is done that service provider is disposed and any middleware in the pipeline before the branch will be stuck with a context whose RequestServices is disposed. The code in UseBranchWithServices should restore the old service provider on the way out so this doesn't happen.
The text was updated successfully, but these errors were encountered:
DJackman123
pushed a commit
to DJackman123/WebAPIContrib.Core
that referenced
this issue
May 24, 2019
When the scope is created in UseBranchWithServices, it changes the context.RequestServices service provider to be the scope's service provider instead then proceeds with the rest of the pipeline. This is fine, but when the scope is done that service provider is disposed and any middleware in the pipeline before the branch will be stuck with a context whose RequestServices is disposed. The code in UseBranchWithServices should restore the old service provider on the way out so this doesn't happen.
The text was updated successfully, but these errors were encountered: