Show / Hide Table of Contents

    Class FallbackHandler

    This handler falls back to different base urls in case of server or network errors.

    Inheritance
    System.Object
    FallbackHandler
    Namespace: Dangl.RestClient
    Assembly: Dangl.RestClient.dll
    Syntax
    public class FallbackHandler : DelegatingHandler

    Constructors

    | Improve this Doc View Source

    FallbackHandler(String[])

    This handler falls back to different base urls in case of server or network errors.

    Declaration
    public FallbackHandler(params string[] baseUrls)
    Parameters
    Type Name Description
    System.String[] baseUrls

    Absolute urls that point to the same service in case of failures

    Methods

    | Improve this Doc View Source

    SendAsync(HttpRequestMessage, CancellationToken)

    This handler falls back to different base urls in case of server or network errors.

    Declaration
    protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    HttpRequestMessage request
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<HttpResponseMessage>
    • Improve this Doc
    • View Source
    Back to top © Dangl IT - Georg Dangl