I am working on Web api 2 (.NET Core 2). I need to develop some wrapper kind of web api which calls some third party web api. So my code will need Httpclient to consume third party web api and it will serve as web api itself as well.Some of the third party
web api needs Hmac Authentication so I need to customize my Authorization header and add hash value to it.Initially I was thinking to create middleware for this but then read about delegating handler and HttpClientFactory. Now I somehow confused between delegating/message
handler and middleware in web api.
I also read that delegating handler are gone in .net core but then HttpClientFactory is available in .net core which takes delegating handler. Could anybody clarify?
Could anybody please suggest that for my scenario(implementing Hamc Authentication and send authorization request header to call third party web api)
1) What should I use delegating handler or middleware?
2) If delegating handler is not gone for .net core, When delegating handler should be used and when middleware should be used