I have implemented Polly in it's own "retry" HttpClient DelegateHandler in a dll written to .NET Standard 2.0. I have the Polly v7.2.3 package. My Htt ...
I have implemented Polly in it's own "retry" HttpClient DelegateHandler in a dll written to .NET Standard 2.0. I have the Polly v7.2.3 package. My Htt ...
I have code which adds a named HttpClient to the ServiceCollection and adds a DelegatingHandler to the client. Example code: When writing unit test ...
I am trying to execute HttpClient.GetAsync in a loop. As per Microsoft Doc, it is recommended to use 1 instance of HttpClient. The way I'm getting H ...
I'm trying to implement retry using DelegatingHandler but I also want to set HttpCompletionOption. My code looks like following : As you can see t ...
I am on a project that needs to have a cross-cutting error handling and response manipulation. I found there are Filters And Delegating Handlers, but ...
Since Microsoft recommends that the HttpClient be created once and reused throughout the life of a program, I wondering how to update DefaultRequestHe ...
I'm attempting to follow this 2013 guide on setting up per-request error handling policies. If the request is local, display the error information ...
I'm trying to call ASP.NET Core APIs that starts with "webapi/v1" by using a ASP.NET WebAPI : I'm using a custom DelegatingHandler to handle "webapi/v ...
I am using the Delegating Handler of Web Api 2.0 to intercept all my Web Api calls and I need to act before the action is executed. I implemented the ...
I'm trying to return custom error responses from web.api. Let it be simple string "Oops!" formatted as json. So I created simple delegating handler wh ...
We have a few classes in our C# project that make calls out to 3rd party APIs. We're using HttpClient objects for the calls. We've set up our classes ...
i have created custom delegating handler and override it's method now in that method i run custom synchronous method, can you guys let me know whic ...
I'm trying to log entire incoming requests and outgoing responses in an ASP.NET WebAPI project. While I'm agreed with DelegatingHandler, my employer i ...
I'm trying to use a DelegatingHandler to wrap my Web API responses. I'm using this as an example. At some point the content needs to be read from the ...
I'm trying to cache a response to a webapi endpoint requests. I've created a DelegatingHadler that short circuits the pipeline reusing a previously g ...
We have an ASP.NET Web Api application which uses OAuth Bearer Tokens for authentication, for which we are trying to implement Request/Response loggin ...
To only zip / deflate WebAPI responses bigger than a given size limit, I have to find out the size of the content to be returned. However the followin ...
Why if I add authorization header with right token in my custom DelegatingHandler to the request without this header, I get the response: 401 authoriz ...
How do I unit test a custom DelegatingHandler? I have the following but its complaining the innerHandler not set. ...
I've created a DelegatingHandler and it works for every request. I've read some articles that i can define a handler for a specific route but I've tri ...