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
Yes, it is. The point of AttachContext is to save a second context in the RequestCtx, but only one! If you need to save more than one, you can create a new one from the first context, and reattach it to the request!
Hi,
I have a scenario where my REST api service calls 2 middlewares. both of them use the
AttachContext
before callingctx.Next()
.After a long debug I realized that the second
AttachContext
is overriding the first one since theAttachContext
key is the same one generated here .Is this intentional?
Thanks in advance
The text was updated successfully, but these errors were encountered: