This repository contains a solution with basic examples demonstrating the creation and utilization of Polly strategies.
Intro- This section serves as an introduction to Polly. It demonstrates how to useResiliencePipelineBuilderto create aResiliencePipeline, which can be used to execute various user-provided callbacks.GenericPipelines- This example showcases how to useResiliencePipelineBuilder<T>to create a genericResiliencePipeline<T>.Retries- This part explains how to configure a retry resilience strategy.Extensibility- In this part, you can learn how Polly can be extended with custom resilience strategies.DependencyInjection- This section demonstrates the integration of Polly withIServiceCollection.Chaos- Simple web application that communicates with an external service using HTTP client. It uses chaos strategies to inject chaos into HTTP client calls.
These examples are designed as a quick-start guide to Polly. If you wish to explore more advanced scenarios and further enhance your learning, consider visiting the Polly-Samples repository.