This repository demonstrates the implementation of fault handling, resiliency, retry policies, and circuit breakers in C# .NET 7 using Polly, a .NET resilience and transient-fault-handling library.
- Fault Handling: Handle transient faults gracefully to improve application robustness.
- Resiliency: Ensure the system continues to function in the presence of faults.
- Retry Policies: Define and apply retry policies for handling transient faults.
- Circuit Breaker: Prevents the system from making calls that are likely to fail.
- .NET 7 SDK installed
- Clone this repository.
- Open the solution in your preferred IDE (Visual Studio, VS Code, etc.).
- Build the solution to restore the necessary packages.
To integrate Polly for fault handling, resiliency, retry policies, or circuit breakers within your C# .NET 7 project:
- Add references to the required Polly NuGet packages in your project.
- Implement Polly policies as needed within your codebase.
- Follow the examples and guidelines provided in the project's source code.
- dotnet build run
Contributions are welcome! If you encounter issues or have enhancements to propose, feel free to submit pull requests or issues.
This project is licensed under MIT