ChaosHandler Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A DelegatingHandler implementation that is used for simulating server failures.
public class ChaosHandler : System.Net.Http.DelegatingHandler
type ChaosHandler = class
inherit DelegatingHandler
Public Class ChaosHandler
Inherits DelegatingHandler
- Inheritance
-
ChaosHandler
Constructors
ChaosHandler(ChaosHandlerOption) |
Create a ChaosHandler. |
Methods
Create429TooManyRequestsResponse(TimeSpan) |
Create a HTTP status 429 response message |
Create500InternalServerErrorResponse() |
Create a HTTP status 500 response message |
Create502BadGatewayResponse() |
Create a HTTP status 502 response message |
Create503Response(TimeSpan) |
Create a HTTP status 503 response message |
Create504GatewayTimeoutResponse(TimeSpan) |
Create a HTTP status 504 response message |
SendAsync(HttpRequestMessage, CancellationToken) |
Sends the request |