How to use base.SendAsync in F# DelegatingHandler

If you’ve ever tried to create an HttpMessageHandler in F#, you’ll have been bitten by the problem of not being able to call base.SendAsync from a callback. The solution is actually quite simple. Just wrap the HttpMessageHandler and expose the protected SendAsync method as a public or internal member. Now, you can call CallableSendAsync in the correct sequence.

Advertisements

One thought on “How to use base.SendAsync in F# DelegatingHandler

Comments are closed.