HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method FailBeforeSending

    FailBeforeSending(Func<HttpRequestMessage, bool>, int)

    Fails the next requests that match before they are sent: they throw an HttpRequestException and never reach the service.

    Declaration
    public FaultInjectionHandler FailBeforeSending(Func<HttpRequestMessage, bool> predicate, int count = 1)
    Parameters
    Type Name Description
    Func<HttpRequestMessage, bool> predicate

    Selects the requests to fail.

    int count

    The number of requests to fail.

    Returns
    Type Description
    FaultInjectionHandler

    This handler.

    © Singulink. All rights reserved.