From 8f4d4fad1ca27adf9e396f5c205c9875a3963664 Mon Sep 17 00:00:00 2001 From: Richard D Date: Fri, 13 Oct 2017 22:06:17 +0100 Subject: [PATCH] Included closing brace in code sample (#4569) * Used an explicit code sample rather than a snippet. The snippet is from a larger class, this modification allows it to be copied and build without modification. * Included closing brace in link to example as suggested --- aspnetcore/fundamentals/app-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/app-state.md b/aspnetcore/fundamentals/app-state.md index 0a0c7071e3..c34207c670 100644 --- a/aspnetcore/fundamentals/app-state.md +++ b/aspnetcore/fundamentals/app-state.md @@ -164,7 +164,7 @@ Session is accessed through the `Session` property on `HttpContext`. This proper The following example shows setting and getting an int and a string: -[!code-csharp[Main](app-state/sample/src/WebAppSession/Controllers/HomeController.cs?name=snippet1)] +[!code-csharp[Main](app-state/sample/src/WebAppSession/Controllers/HomeController.cs?range=8-27,49)] If you add the following extension methods, you can set and get serializable objects to Session: