Adding cache service to the Ntlm startup
This commit is contained in:
parent
8562a5c454
commit
c41407d7b7
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue