Fix line highlights for "Configure Session State" (#18043)

pull/18046/head
Kirk Larkin 2020-04-28 22:47:06 +01:00 committed by GitHub
parent 497169decd
commit 8ea9cb7c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -89,7 +89,7 @@ To enable the session middleware, `Startup` must contain:
The following code shows how to set up the in-memory session provider with a default in-memory implementation of `IDistributedCache`:
[!code-csharp[](app-state/samples/3.x/SessionSample/Startup4.cs?name=snippet1&highlight=12-19,39)]
[!code-csharp[](app-state/samples/3.x/SessionSample/Startup4.cs?name=snippet1&highlight=12-19,45)]
The preceding code sets a short timeout to simplify testing.

View File

@ -44,11 +44,10 @@ namespace SessionSample2
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseHttpContextItemsMiddleware();
app.UseRouting();
app.UseAuthentication();