From d0a2dce886a2602a4b2bb7a62575ccaa32e76157 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 24 Feb 2025 15:40:55 -1000 Subject: [PATCH 1/6] AddWrappedAspNetCoreSession --- aspnetcore/migration/inc/samples/wrapped/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/migration/inc/samples/wrapped/Program.cs b/aspnetcore/migration/inc/samples/wrapped/Program.cs index 819c9deadcf7..3dad9c236f45 100644 --- a/aspnetcore/migration/inc/samples/wrapped/Program.cs +++ b/aspnetcore/migration/inc/samples/wrapped/Program.cs @@ -8,7 +8,7 @@ options.RegisterKey("test-value"); options.RegisterKey("SampleSessionItem"); }) - .WrapAspNetCoreSession(); + .AddWrappedAspNetCoreSession(); // var app = builder.Build(); From 8848035c36cb6a32f1ca1c3981931344073a740a Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 24 Feb 2025 15:43:54 -1000 Subject: [PATCH 2/6] Update date and rephrase sentence in wrapped.md --- aspnetcore/migration/inc/wrapped.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/migration/inc/wrapped.md b/aspnetcore/migration/inc/wrapped.md index 2daf677855d1..3101789e0b5e 100644 --- a/aspnetcore/migration/inc/wrapped.md +++ b/aspnetcore/migration/inc/wrapped.md @@ -4,7 +4,7 @@ description: Wrapped ASP.NET Core session state author: rick-anderson ms.author: riande monikerRange: '>= aspnetcore-6.0' -ms.date: 11/9/2022 +ms.date: 2/24/2024 ms.topic: article uid: migration/inc/wrapped --- @@ -17,4 +17,4 @@ Configuration for ASP.NET Core would look similar to the following: :::code language="csharp" source="~/migration/inc/samples/wrapped/Program.cs" id="snippet_WrapAspNetCoreSession" ::: -The framework app would not need any changes to enable this behavior. +The framework app doesn't need any changes to enable this behavior. From 78525c5d1c0ae9ee74afedcd0fd60b661b30ca1b Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 24 Feb 2025 15:47:43 -1000 Subject: [PATCH 3/6] Update wrapped.md for clarity and link fix --- aspnetcore/migration/inc/wrapped.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/migration/inc/wrapped.md b/aspnetcore/migration/inc/wrapped.md index 3101789e0b5e..d3ed02961282 100644 --- a/aspnetcore/migration/inc/wrapped.md +++ b/aspnetcore/migration/inc/wrapped.md @@ -11,9 +11,9 @@ uid: migration/inc/wrapped # Wrapped ASP.NET Core session state -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. +This 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. -Configuration for ASP.NET Core would look similar to the following: +Configuration for ASP.NET Core looks similar to the following: :::code language="csharp" source="~/migration/inc/samples/wrapped/Program.cs" id="snippet_WrapAspNetCoreSession" ::: From 5535095b57cfda09ec99c142a774ae923ccddc74 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 24 Feb 2025 15:57:47 -1000 Subject: [PATCH 4/6] Update wrapped ASP.NET Core session documentation --- aspnetcore/migration/inc/wrapped.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aspnetcore/migration/inc/wrapped.md b/aspnetcore/migration/inc/wrapped.md index d3ed02961282..f28389b6115e 100644 --- a/aspnetcore/migration/inc/wrapped.md +++ b/aspnetcore/migration/inc/wrapped.md @@ -11,10 +11,12 @@ uid: migration/inc/wrapped # Wrapped ASP.NET Core session state -This 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. +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. Configuration for ASP.NET Core looks similar to the following: :::code language="csharp" source="~/migration/inc/samples/wrapped/Program.cs" id="snippet_WrapAspNetCoreSession" ::: The framework app doesn't need any changes to enable this behavior. + +For more information, see the [AddWrappedAspNetCoreSession sample app](https://github.com/dotnet/systemweb-adapters/blob/main/samples/CoreApp/Program.cs) From 17cc2f106fb6a958040399dfa240e30b65e135e8 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 24 Feb 2025 15:58:05 -1000 Subject: [PATCH 5/6] Fix markdown link formatting in wrapped.md --- aspnetcore/migration/inc/wrapped.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/migration/inc/wrapped.md b/aspnetcore/migration/inc/wrapped.md index f28389b6115e..3212aac4c43a 100644 --- a/aspnetcore/migration/inc/wrapped.md +++ b/aspnetcore/migration/inc/wrapped.md @@ -11,7 +11,7 @@ uid: migration/inc/wrapped # Wrapped ASP.NET Core session state -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. +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. Configuration for ASP.NET Core looks similar to the following: From d93a57ea130e2eab763692813c1a5808e2053434 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Tue, 25 Feb 2025 08:28:44 -1000 Subject: [PATCH 6/6] Update aspnetcore/migration/inc/wrapped.md Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> --- aspnetcore/migration/inc/wrapped.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/migration/inc/wrapped.md b/aspnetcore/migration/inc/wrapped.md index 3212aac4c43a..491f7545dea9 100644 --- a/aspnetcore/migration/inc/wrapped.md +++ b/aspnetcore/migration/inc/wrapped.md @@ -4,7 +4,7 @@ description: Wrapped ASP.NET Core session state author: rick-anderson ms.author: riande monikerRange: '>= aspnetcore-6.0' -ms.date: 2/24/2024 +ms.date: 2/24/2025 ms.topic: article uid: migration/inc/wrapped ---