From 0d78bdbef253272368bc7625cb9ebbe3e525752a Mon Sep 17 00:00:00 2001 From: Kiran Challa Date: Fri, 17 Jul 2015 10:29:03 -0700 Subject: [PATCH] Fixed sample and instructions --- samples/SessionSample/Startup.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/samples/SessionSample/Startup.cs b/samples/SessionSample/Startup.cs index 38ff8d73f6..785005de35 100644 --- a/samples/SessionSample/Startup.cs +++ b/samples/SessionSample/Startup.cs @@ -20,21 +20,21 @@ namespace SessionSample public void ConfigureServices(IServiceCollection services) { - // Adds a default in-memory implementation of IDistributedCache - services.AddCaching(); + // Uncomment the following line to use the Microsoft SQL Server implementation of IDistributedCache. + // Note that this would require setting up the session state database. + //services.AddSqlServerCache(o => + //{ + // o.ConnectionString = "Server=.;Database=ASPNET5SessionState;Trusted_Connection=True;"; + // o.SchemaName = "dbo"; + // o.TableName = "Sessions"; + //}); // Uncomment the following line to use the Redis implementation of IDistributedCache. // This will override any previously registered IDistributedCache service. //services.AddTransient(); - // Uncomment the following line to use the Microsoft SQL Server implementation of IDistributedCache. - // Note that this would require setting up the session state database. - // This will override any previously registered IDistributedCache service. - //services.AddSqlServerCache(o => - //{ - // o.ConnectionString = "Server=.;Database=ASPNET5SessionState;Trusted_Connection=True;"; - // o.TableName = "Sessions"; - //}); + // Adds a default in-memory implementation of IDistributedCache + services.AddCaching(); services.AddSession();