Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laget-se/laget.limiter.stores.mongo
MongoDB store implementation for laget.Limiter...
https://github.com/laget-se/laget.limiter.stores.mongo
mongo nuget
Last synced: 22 days ago
JSON representation
MongoDB store implementation for laget.Limiter...
- Host: GitHub
- URL: https://github.com/laget-se/laget.limiter.stores.mongo
- Owner: laget-se
- License: apache-2.0
- Created: 2020-12-21T06:15:29.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T12:37:57.000Z (8 months ago)
- Last Synced: 2024-05-06T14:23:49.856Z (8 months ago)
- Topics: mongo, nuget
- Language: C#
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# laget.Limiter.Store.Mongo
MongoDB store implementation for laget.Limiter...![Nuget](https://img.shields.io/nuget/v/laget.Limiter.Stores.Mongo)
![Nuget](https://img.shields.io/nuget/dt/laget.Limiter.Stores.Mongo)## Configuration
> This example is shown using Autofac since this is the go-to IoC for us.
```c#
builder.Register(c =>
new AuthorizationLimit(new MongoStore(new MongoUrl(c.Resolve().GetConnectionString("MongoConnectionString")), "authorization.calls"),
new StandardLimit(300, TimeSpan.FromHours(3)))
).SingleInstance();
```