Skip to content

Commit 003dc1f

Browse files
AddWrappedAspNetCoreSession (#34795)
* AddWrappedAspNetCoreSession * Update date and rephrase sentence in wrapped.md * Update wrapped.md for clarity and link fix * Update wrapped ASP.NET Core session documentation * Fix markdown link formatting in wrapped.md * Update aspnetcore/migration/inc/wrapped.md Co-authored-by: Tim Deschryver <[email protected]> --------- Co-authored-by: Tim Deschryver <[email protected]>
1 parent bd53f64 commit 003dc1f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

aspnetcore/migration/inc/wrapped.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ description: Wrapped ASP.NET Core session state
44
author: rick-anderson
55
ms.author: riande
66
monikerRange: '>= aspnetcore-6.0'
7-
ms.date: 11/9/2022
7+
ms.date: 2/24/2025
88
ms.topic: article
99
uid: migration/inc/wrapped
1010
---
1111

1212
# Wrapped ASP.NET Core session state
1313

14-
This implementation wraps the session provided on ASP.NET Core so that it can be used with the adapters. The session will be using the same backing store as `Microsoft.AspNetCore.Http.ISession` but will provide strongly-typed access to its members.
14+
The [AddWrappedAspNetCoreSession](https://github.com/dotnet/systemweb-adapters/blob/main/src/Microsoft.AspNetCore.SystemWebAdapters.CoreServices/SessionState/Wrapped/WrappedSessionExtensions.cs) implementation wraps the session provided on ASP.NET Core so that it can be used with the adapters. The session uses the same backing store as [`Microsoft.AspNetCore.Http.ISession`](/dotnet/api/microsoft.aspnetcore.http.isession) but provides strongly-typed access to its members.
1515

16-
Configuration for ASP.NET Core would look similar to the following:
16+
Configuration for ASP.NET Core looks similar to the following:
1717

1818
:::code language="csharp" source="~/migration/inc/samples/wrapped/Program.cs" id="snippet_WrapAspNetCoreSession" :::
1919

20-
The framework app would not need any changes to enable this behavior.
20+
The framework app doesn't need any changes to enable this behavior.
21+
22+
For more information, see the [AddWrappedAspNetCoreSession sample app](https://github.com/dotnet/systemweb-adapters/blob/main/samples/CoreApp/Program.cs)

0 commit comments

Comments
 (0)