From c41407d7b7290009d263a5e6d020d044c6ee6ff0 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 9 Sep 2014 16:45:19 -0700 Subject: [PATCH] Adding cache service to the Ntlm startup --- src/MusicStore/StartupNtlmAuthentication.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MusicStore/StartupNtlmAuthentication.cs b/src/MusicStore/StartupNtlmAuthentication.cs index 75228e68f2..c489553b7f 100644 --- a/src/MusicStore/StartupNtlmAuthentication.cs +++ b/src/MusicStore/StartupNtlmAuthentication.cs @@ -10,6 +10,7 @@ using Microsoft.Net.Http.Server; using Microsoft.AspNet.Server.WebListener; using System.Security.Claims; using System.Security.Principal; +using Microsoft.AspNet.MemoryCache; namespace MusicStore { @@ -107,6 +108,10 @@ namespace MusicStore //Add all SignalR related services to IoC. services.AddSignalR(); + + //Add InMemoryCache + //Currently not able to AddSingleTon + services.AddInstance(new MemoryCache()); }); //Configure SignalR