Reputation: 450
I was just planning to implement a custom session state provider for a distributed cache product in .net core but I could not find SessionStateStoreProviderBase and related classes in dotnet core. Can somebody tell me where to find them?
Upvotes: 2
Views: 3017
Reputation: 1451
This is more relevant now: https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.session?view=aspnetcore-2.2
I believe you'll want to inject in your own ISessionStore for the SessionManager to pick up. SessionManager
Upvotes: 1
Reputation: 6094
Session is very different in ASP.NET Core. It's designed around IDistributedCache and takes the implementation from DI. https://github.com/aspnet/Caching/blob/rel/1.1.2/src/Microsoft.Extensions.Caching.Abstractions/IDistributedCache.cs
Upvotes: 2