| File: Features\DefaultSessionFeature.cs | Web Access |
| Project: src\aspnetcore\src\Http\Http\src\Microsoft.AspNetCore.Http.csproj (Microsoft.AspNetCore.Http) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features; /// <summary> /// This type exists only for the purpose of unit testing where the user can directly set the /// <see cref="HttpContext.Session"/> property without the need for creating a <see cref="ISessionFeature"/>. /// </summary> public class DefaultSessionFeature : ISessionFeature { /// <inheritdoc /> public ISession Session { get; set; } = default!; }