4 implementations of ISession
Microsoft.AspNetCore.Http.Tests (1)
DefaultHttpContextTests.cs (1)
447private class TestSession : ISession
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
SessionStateTempDataProviderTest.cs (1)
99private class TestSession : ISession
ViewComponentTests.cs (1)
266private class TestSession : ISession
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
19public class DistributedSession : ISession
38 references to ISession
Microsoft.AspNetCore.Http (2)
DefaultHttpContext.cs (1)
198public override ISession Session
Features\DefaultSessionFeature.cs (1)
13public ISession Session { get; set; } = default!;
Microsoft.AspNetCore.Http.Abstractions (2)
HttpContext.cs (2)
73public abstract ISession Session { get; set; } 102public ISession? Session => _context.Features.Get<ISessionFeature>()?.Session;
Microsoft.AspNetCore.Http.Extensions (16)
SessionExtensions.cs (16)
9/// Extension methods for <see cref="ISession"/>. 14/// Sets an int value in the <see cref="ISession"/>. 16/// <param name="session">The <see cref="ISession"/>.</param> 19public static void SetInt32(this ISession session, string key, int value) 32/// Gets an int value from <see cref="ISession"/>. 34/// <param name="session">The <see cref="ISession"/>.</param> 36public static int? GetInt32(this ISession session, string key) 47/// Sets a <see cref="string"/> value in the <see cref="ISession"/>. 49/// <param name="session">The <see cref="ISession"/>.</param> 52public static void SetString(this ISession session, string key, string value) 58/// Gets a string value from <see cref="ISession"/>. 60/// <param name="session">The <see cref="ISession"/>.</param> 62public static string? GetString(this ISession session, string key) 73/// Gets a byte-array value from <see cref="ISession"/>. 75/// <param name="session">The <see cref="ISession"/>.</param> 77public static byte[]? Get(this ISession session, string key)
Microsoft.AspNetCore.Http.Features (3)
ISessionFeature.cs (3)
7/// Provides access to the <see cref="ISession"/> for the current request. 12/// The <see cref="ISession"/> for the current request. 14ISession Session { get; set; }
Microsoft.AspNetCore.Http.Tests (1)
DefaultHttpContextTests.cs (1)
491public ISession Session { get; set; }
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
SessionStateTempDataProvider.cs (2)
33var session = context.Session; 52var session = context.Session;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
SessionStateTempDataProviderTest.cs (1)
96public ISession Session { get; set; }
ViewComponentTests.cs (1)
263public ISession Session { get; set; }
Microsoft.AspNetCore.Session (10)
DistributedSession.cs (1)
15/// An <see cref="ISession"/> backed by an <see cref="IDistributedCache"/>.
DistributedSessionStore.cs (1)
33public ISession Create(string sessionKey, TimeSpan idleTimeout, TimeSpan ioTimeout, Func<bool> tryEstablishSession, bool isNewSessionKey)
ISessionStore.cs (7)
14/// Create a new or resume an <see cref="ISession"/>. 19/// The maximum amount of time <see cref="ISession.LoadAsync(System.Threading.CancellationToken)"/> and 20/// <see cref="ISession.CommitAsync(System.Threading.CancellationToken)"/> are allowed take. 23/// A callback invoked during <see cref="ISession.Set(string, byte[])"/> to verify that modifying the session is currently valid. 24/// If the callback returns <see langword="false"/>, <see cref="ISession.Set(string, byte[])"/> should throw an <see cref="InvalidOperationException"/>. 29/// <returns>The <see cref="ISession"/> that was created or resumed.</returns> 30ISession Create(string sessionKey, TimeSpan idleTimeout, TimeSpan ioTimeout, Func<bool> tryEstablishSession, bool isNewSessionKey);
SessionFeature.cs (1)
13public ISession Session { get; set; } = default!;