Search Results for

    Show / Hide Table of Contents

    Configuring DelegatingHandlers

    You can add DelegatingHandlers thanks to this option:

    • Static
    • Extended
    // 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)
    
    // direct configuration
    options => options.AddDelegatingHandler(YourDelegatingHandler)
    
    // OR factory configuration with the service provider instance
    options => options.AddDelegatingHandler(serviceProvider => YourDelegatingHandler)
    
    // OR factory configuration with the service provider and options instances
    options => options.AddDelegatingHandler((serviceProvider, options) => YourDelegatingHandler)
    
    Warning

    Inner DelegatingHandler

    Don't 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.

    In This Article
    Back to top Supported by Respawnsive