Skip to content

Instantly share code, notes, and snippets.

@jmarmolejos
Created October 16, 2016 17:20
Show Gist options
  • Select an option

  • Save jmarmolejos/2deb5566c694e4a405b858179eda4487 to your computer and use it in GitHub Desktop.

Select an option

Save jmarmolejos/2deb5566c694e4a405b858179eda4487 to your computer and use it in GitHub Desktop.
public class ExceptionRaisingHandler : HttpClientHandler
{
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
throw new HttpRequestException();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment