2 implementations of ISessionFeature
Microsoft.AspNetCore.Http (1)
Features\DefaultSessionFeature.cs (1)
10public class DefaultSessionFeature : ISessionFeature
Microsoft.AspNetCore.Session (1)
SessionFeature.cs (1)
10public class SessionFeature : ISessionFeature
20 references to ISessionFeature
Microsoft.AspNetCore.Components.Endpoints (1)
SessionCascadingValueSupplier.cs (1)
65internal ISession? GetSession() => _httpContext?.Features.Get<ISessionFeature>()?.Session;
Microsoft.AspNetCore.Http (7)
DefaultHttpContext.cs (6)
32private static readonly Func<IFeatureCollection, ISessionFeature> _newSessionFeature = f => new DefaultSessionFeature(); 33private static readonly Func<IFeatureCollection, ISessionFeature?> _nullSessionFeature = f => null; 129private ISessionFeature SessionFeature => 132private ISessionFeature? SessionFeatureOrNull => 202var feature = SessionFeatureOrNull; 256public ISessionFeature? Session;
Features\DefaultSessionFeature.cs (1)
8/// <see cref="HttpContext.Session"/> property without the need for creating a <see cref="ISessionFeature"/>.
Microsoft.AspNetCore.Http.Abstractions (1)
HttpContext.cs (1)
102public ISession? Session => _context.Features.Get<ISessionFeature>()?.Session;
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http\HttpProtocol.Generated.cs (9)
67internal protected ISessionFeature? _currentISessionFeature; 252else if (key == typeof(ISessionFeature)) 404else if (key == typeof(ISessionFeature)) 406_currentISessionFeature = (ISessionFeature?)value; 558else if (typeof(TFeature) == typeof(ISessionFeature)) 560feature = Unsafe.As<ISessionFeature?, TFeature?>(ref _currentISessionFeature); 718else if (typeof(TFeature) == typeof(ISessionFeature)) 720_currentISessionFeature = Unsafe.As<TFeature?, ISessionFeature?>(ref feature); 868yield return new KeyValuePair<Type, object>(typeof(ISessionFeature), _currentISessionFeature);
Microsoft.AspNetCore.Session (2)
SessionMiddleware.cs (2)
86context.Features.Set<ISessionFeature>(feature); 94context.Features.Set<ISessionFeature?>(null);