Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

martincostello/polly-rate-limiting

Polly Rate-Limiting with ASP.NET Core

Build status

Introduction

A sample application using ASP.NET Core Minimal APIs that demonstrates usage of the Rate-Limit policy available in Polly version 7.2.3 and later.

Debugging

To debug the application locally outside of the integration tests, you will need to create a GitHub OAuth app to obtain secrets for the GitHub:ClientId and GitHub:ClientSecret options so that the OAuth user authentication works and you can log into the Todo App UI.

💡 When creating the GitHub OAuth app, use https://localhost:5001/sign-in-github as the Authorization callback URL.

⚠️ Do not commit GitHub OAuth secrets to source control. Configure them with User Secrets instead.

Building and Testing

Compiling the application yourself requires Git and the .NET SDK to be installed.

To build and test the application locally from a terminal/command-line, run the following set of commands:

git clone https://github.com/martincostello/polly-rate-limiting.git
cd polly-rate-limiting
./build.ps1

Feedback

Any feedback or issues can be added to the issues for this project in GitHub.

Repository

The repository is hosted in GitHub: https://github.com/martincostello/polly-rate-limiting.git

License

This project is licensed under the Apache 2.0 license.