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

laget-se/laget.Fingerprint.Stores.Mongo

Repository files navigation

laget.Fingerprint.Stores.Mongo

MongoDB store implementation for laget.Fingerprint...

Nuget Nuget

Configuration

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

public class FingerprintModule : Module
{
    protected override void Load(ContainerBuilder builder)
    {
        builder.Register<IFingerprintManager<Fingerprint, User>>(c =>
            new FingerprintManager<Fingerprint, User>(new MongoStore<Fingerprint, User>(new MongoUrl(c.Resolve<IConfiguration>().GetConnectionString("MongoConnectionString"))))
        ).SingleInstance();
    }
}

About

MongoDB store implementation for laget.Fingerprint...

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages