Adding cache service to the Ntlm startup

This commit is contained in:
Praburaj 2014-09-09 16:45:19 -07:00
parent 8562a5c454
commit c41407d7b7
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ using Microsoft.Net.Http.Server;
using Microsoft.AspNet.Server.WebListener; using Microsoft.AspNet.Server.WebListener;
using System.Security.Claims; using System.Security.Claims;
using System.Security.Principal; using System.Security.Principal;
using Microsoft.AspNet.MemoryCache;
namespace MusicStore namespace MusicStore
{ {
@ -107,6 +108,10 @@ namespace MusicStore
//Add all SignalR related services to IoC. //Add all SignalR related services to IoC.
services.AddSignalR(); services.AddSignalR();
//Add InMemoryCache
//Currently not able to AddSingleTon
services.AddInstance<IMemoryCache>(new MemoryCache());
}); });
//Configure SignalR //Configure SignalR