This demo shows how to create and use a DelegatingHandler in a ASP.NET Web API application (server side):
- See the tutorial-server for more details.
And how to use it in with HttpClient from a console application (client side):
- See the tutorial-client for more details.
Note
DelegatingHandleris inheritingHttpMessageHandlerand it is the base class for custom message handlers. Both server side and client side.