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
In my Owin Middleware I subscribe a callback to the OnSendingHeaders. In my UnitTests (see below), the callback is sometimes called twice. Most of the time, the first TestCase succeeds and the second fails. Sometimes both succeed, sometimes both fail. Also on production I have the problem, that the callback is sometimes called more than once.
My expectation would have been, that this callback is only called once. The documentation doesn’t give a hint for this behavior, nor does it exclude it. Therefor my question: Is this behavior on purpose? Or is this a bug?
FWIW, I am also seeing this - it causes a lot of uncertainty when trying to work with System.Diagnostics.Activity (on the second invocation, Activity.Current may be null).
In my Owin Middleware I subscribe a callback to the OnSendingHeaders. In my UnitTests (see below), the callback is sometimes called twice. Most of the time, the first TestCase succeeds and the second fails. Sometimes both succeed, sometimes both fail. Also on production I have the problem, that the callback is sometimes called more than once.
My expectation would have been, that this callback is only called once. The documentation doesn’t give a hint for this behavior, nor does it exclude it. Therefor my question: Is this behavior on purpose? Or is this a bug?
The text was updated successfully, but these errors were encountered: