Hi Everyone!
This is continuation of the series of posts on Polly v8 and .NET 8.
In this series of posts, I will try to cover some of the new features of Polly v8 and .NET 8. Below are the topics I am planning to cover in this series :
Implementing Retry Strategy for HttpClientFactory using Polly(v8) and .NET 8
This Post - Re-Authorize Efficiently Using Polly And .NET HttpClientFactory in .
Hi Everyone!
As we all aware, Polly v8 is released sometime back and so is .NET 8, it is ready for Production use 🥳.
In this series of posts, I will try to cover some of the new features of Polly v8 and .NET 8. Below are the topics I am planning to cover in this series :
This Post - Implementing Retry Strategy for HttpClientFactory using Polly(v8) and .NET 8
Hi Everyone!
As you are aware I have decided to move away from MOQ and insted we will use FakeItEasy for mocking the Azure Storage SDK. This post is adoptation of this which is using Moq.
You can find the full series of how to perform unit and integration tests for Azure Blob Storage using Azurite Test Containers, and xUnit.
Getting started with testing for Azure Blob Storage : Dependency Injection
Hi Everyone!
In this post, we will discuss about the alternative framework for mocking. This post is adoptation of this which is using Moq.
You can find the full series of how to perform unit and integration tests for Azure Blob Storage using Azurite Test Containers, and xUnit.
Getting started with testing for Azure Blob Storage : Dependency Injection
Getting started with testing for Azure Blob Storage : Unit Test with help of Moq
We, as C# developers, are used to throwing exceptions everywhere be it a functional such as validation or technical such as network failure. But is it worth throwing exceptions everywhere? Exceptions are expensive. You should not throw exceptions everywhere. You should throw exceptions only when it is necessary. But how? Let’s discuss the alternative approach.
Types of exceptions in general Excellent article by Eric Lippert on exceptions, where you can find the types of exceptions in general.
Recently, Polly team did fabulous job 🎉 by releasing the new version 8.0.0. It has lot of improvements and also they re-implemented Policy as Strategy. Polly v8 introduces the concept of resilience pipelines, a powerful tool that put together one or more resilience strategies.Here is the all changes you can find.
The Problem Microsoft provides a extension Microsoft.Extensions.Http.Polly which allows us to use Polly with HttpClientFactory. It is very easy to use and you can find the documentation here.
In today’s world, we are using a lot of APIs to build our applications. To make your .NET based applications more ressilient and fault tolerant, go to solution is to use Polly. Probably, you are already using it. So,I’m not going to explain how to use it in general. You can find some excellent documentation here.
However, In this post I’m going to discuss about one of the typical scenario where we need to refresh the authentication token when using Polly.