Created attachment 21099 [details]
AuthenticationSchemeSelectorDelegate is called twice for each received request. Attached test shows the problem, just run it and connect via browser like http://localhost:4040/. The test prints:
On Windows/.NET, it prints the message just once - delegate is called just once.
The same happens in asynchronous call - first it gets called before registered listener and then when listener calls EndGetContext().