This project is no longer maintained and may be deleted at a later date. Note to Terryberry developers, functionallity here has been ported to Terryberry.WebServices.ApiBase.
Data Protection APIs for persisting keys to MongoDB.
public void ConfigureServices(IServiceCollection services)
{
services.AddDataProtection()
.SetApplicationName("MyApplication")
.PersistKeysToMongoDb("mongodb://localhost:27017/", "KeyDatabase", "KeyCollection")
.AddKeyCleanup();
}