From 962600435c1e1e16889738379daffb2d06fcd747 Mon Sep 17 00:00:00 2001 From: Judah Gabriel Himango Date: Wed, 26 Jun 2019 12:02:48 -0500 Subject: [PATCH] Doc fix around startup wiring. --- Samples/Mvc/Readme.md | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/Samples/Mvc/Readme.md b/Samples/Mvc/Readme.md index 49fcfe8..4cba417 100644 --- a/Samples/Mvc/Readme.md +++ b/Samples/Mvc/Readme.md @@ -108,27 +108,12 @@ In [Startup.cs](https://github.com/JudahGabriel/RavenDB.Identity/blob/master/Sam ```csharp public void ConfigureServices(IServiceCollection services) { - // Grab our RavenSettings object from appsettings.json. - services.Configure(Configuration.GetSection("RavenSettings")); - ... - // Add an IDocumentStore singleton, with settings pulled from the RavenSettings. - services.AddRavenDbDocStore(); - - // Add a scoped IAsyncDocumentSession. For the sync version, use .AddRavenSession() instead. - // Note: Your code is responsible for calling .SaveChangesAsync() on this. This Sample does so via the RavenSaveChangesAsyncFilter. - services.AddRavenDbAsyncSession(); - - // Use Raven for our users - services.AddRavenDbIdentity(); - - ... - - // Call .SaveChangesAsync() after each action. services - .AddMvc(o => o.Filters.Add()) - .SetCompatibilityVersion(CompatibilityVersion.Version_2_2); + .AddRavenDbDocStore() // Create our IDocumentStore singleton using the database settings in appsettings.json + .AddRavenDbAsyncSession() // Create an Raven IAsyncDocumentSession for every request. + .AddRavenDbIdentity(); // Let Raven store users and roles. } ```