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

Search Results for

    Method FailAfterSending

    FailAfterSending(Func<HttpRequestMessage, bool>, int)

    Fails the next requests that match after the service has handled them, as if the connection dropped before the response arrived: they throw an HttpRequestException instead of returning the response.

    Declaration
    public FaultInjectionHandler FailAfterSending(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.