Configuring DelegatingHandlers
You can add DelegatingHandlers thanks to this option:
// direct configuration
options => options.AddDelegatingHandler(YourDelegatingHandler)
// OR factory configuration with the logger instance
options => options.AddDelegatingHandler(logger => YourDelegatingHandler)
// OR factory configuration with the logger and options instances
options => options.AddDelegatingHandler((logger, options) => YourDelegatingHandler)
Warning
Inner DelegatingHandler
Do not try to manage delegating handlers hierarchy by yourself, providing any inner handlers. Instead, just add your handlers thanks to the AddDelegatingHandler option the order you want and Apizr will do it for you.