Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

laget-se/laget.Limiter.Stores.Mongo

Repository files navigation

laget.Limiter.Store.Mongo

MongoDB store implementation for laget.Limiter...

Nuget Nuget

Configuration

This example is shown using Autofac since this is the go-to IoC for us.

builder.Register<ISomeLimit>(c =>
    new AuthorizationLimit(new MongoStore(new MongoUrl(c.Resolve<IConfiguration>().GetConnectionString("MongoConnectionString")), "authorization.calls"),
        new StandardLimit(300, TimeSpan.FromHours(3)))
).SingleInstance();

About

MongoDB store implementation for laget.Limiter...

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages