Given this when starting the application ...
app.Use((context, next) => { return next.Invoke(); }).UseStageMarker(PipelineStage.PostAuthenticate); app.Use((context, next) => { return next.Invoke(); }).UseStageMarker(PipelineStage.Authenticate);
... why is the PostAuthenticate code executed before the Authenticate code?
I do not mean "why the first app.use is called before the second app.use". I mean: why does the first call cause the call before the second, given that the second should happen earlier in the pipeline request?
EDIT
Related to this problem: How to get the Windows ID in this code?
source share