C
C#11mo ago
frobnicate

In a Typed Client, do you need to explicitly handle bad response codes?

So I've been refactoring to use Typed Clients, and now I'm wondering about handling bad responses, which they don't seem to do in the example in the docs, so I'm confused if that's handled by the Polly-layer policies you set when registering the Client? Code https://paste.mod.gg/gnmecbwforev/0 Docs https://learn.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests#implement-your-typed-client-classes-that-use-the-injected-and-configured-httpclient
1 Reply
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?