DefaultSessionFeature Class¶
This type exists only for the purpose of unit testing where the user can directly set the
Microsoft.AspNetCore.Http.HttpContext.Session
property without the need for creating a Microsoft.AspNetCore.Http.Features.ISessionFeature
.
- Namespace
Microsoft.AspNetCore.Http.Features
- Assemblies
- Microsoft.AspNetCore.Http
Syntax¶
public class DefaultSessionFeature : ISessionFeature
-
class
Microsoft.AspNetCore.Http.Features.
DefaultSessionFeature
Properties¶
-
Microsoft.AspNetCore.Http.Features.DefaultSessionFeature.
Session
¶ Return type: Microsoft.AspNetCore.Http.ISession public ISession Session { get; set; }
-