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 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<IMemoryCache>(new MemoryCache());
|
||||
});
|
||||
|
||||
//Configure SignalR
|
||||
|
|
|
|||
Loading…
Reference in New Issue