From 7926302442550cec1f620b848fd7eff217b28090 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Sat, 21 Jul 2018 18:17:13 -0500 Subject: [PATCH] Add HttpContext to TOC/index page (#7735) --- aspnetcore/fundamentals/index.md | 6 ++++++ aspnetcore/toc.md | 35 ++++++++++++++++---------------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/aspnetcore/fundamentals/index.md b/aspnetcore/fundamentals/index.md index 745343d6e4..aa6e1a6770 100644 --- a/aspnetcore/fundamentals/index.md +++ b/aspnetcore/fundamentals/index.md @@ -186,6 +186,12 @@ Background tasks are implemented as *hosted services*. A hosted service is a cla For more information, see [Background tasks with hosted services](xref:fundamentals/host/hosted-services). +## Access HttpContext + +Access the `HttpContext` through the [IHttpContextAccessor](/dotnet/api/microsoft.aspnetcore.http.ihttpcontextaccessor) interface and its default implementation [HttpContextAccessor](/dotnet/api/microsoft.aspnetcore.http.httpcontextaccessor). + +For more information, see . + ## Open Web Interface for .NET (OWIN) ASP.NET Core supports the Open Web Interface for .NET (OWIN). OWIN allows web apps to be decoupled from web servers. diff --git a/aspnetcore/toc.md b/aspnetcore/toc.md index 9b0993eecf..d1d78fbbf8 100644 --- a/aspnetcore/toc.md +++ b/aspnetcore/toc.md @@ -113,42 +113,43 @@ ## [Create backend services for mobile apps](mobile/native-mobile-backend.md) -# [Fundamentals](fundamentals/index.md) -## [Application startup](fundamentals/startup.md) -## [Dependency injection (services)](fundamentals/dependency-injection.md) +# [Fundamentals](xref:fundamentals/index) +## [Application startup](xref:fundamentals/startup) +## [Dependency injection (services)](xref:fundamentals/dependency-injection) ## [Middleware](xref:fundamentals/middleware/index) ### [Middleware](xref:fundamentals/middleware/index) ### [Factory-based middleware](xref:fundamentals/middleware/extensibility) ### [Factory-based middleware with third-party container](xref:fundamentals/middleware/extensibility-third-party-container) -## [Static files](fundamentals/static-files.md) -## [Routing](fundamentals/routing.md) -## [URL rewriting middleware](fundamentals/url-rewriting.md) -## [Use multiple environments](fundamentals/environments.md) +## [Static files](xref:fundamentals/static-files) +## [Routing](xref:fundamentals/routing) +## [URL rewriting middleware](xref:fundamentals/url-rewriting) +## [Use multiple environments](xref:fundamentals/environments) ## [Configuration and options](xref:fundamentals/configuration/index) ### [Configuration](xref:fundamentals/configuration/index) ### [Options](xref:fundamentals/configuration/options) ### [Enhance an app from an external assembly](xref:fundamentals/configuration/platform-specific-configuration) ## [Logging](xref:fundamentals/logging/index) ### [Logging with LoggerMessage](xref:fundamentals/logging/loggermessage) -## [Handle errors](fundamentals/error-handling.md) -## [File providers](fundamentals/file-providers.md) +## [Handle errors](xref:fundamentals/error-handling) +## [File providers](xref:fundamentals/file-providers) ## [Host](xref:fundamentals/host/index) ### [Web Host](xref:fundamentals/host/web-host) ### [Generic Host](xref:fundamentals/host/generic-host) ### [Background tasks with hosted services](xref:fundamentals/host/hosted-services) -## [Session and app state](fundamentals/app-state.md) -## [Servers](fundamentals/servers/index.md) -### [Kestrel](fundamentals/servers/kestrel.md) -### [ASP.NET Core Module](fundamentals/servers/aspnet-core-module.md) -### [HTTP.sys](fundamentals/servers/httpsys.md) +## [Session and app state](xref:fundamentals/app-state) +## [Servers](xref:fundamentals/servers/index) +### [Kestrel](xref:fundamentals/servers/kestrel) +### [ASP.NET Core Module](xref:fundamentals/servers/aspnet-core-module) +### [HTTP.sys](xref:fundamentals/servers/httpsys) ## [Globalization and localization](xref:fundamentals/localization) ### [Configure Portable Object localization with Orchard Core](xref:fundamentals/portable-object-localization) ## [Initiate HTTP requests](xref:fundamentals/http-requests) -## [Request features](fundamentals/request-features.md) +## [Request features](xref:fundamentals/request-features) +## [Access HttpContext](xref:fundamentals/httpcontext) ## [Primitives](xref:fundamentals/primitives/index) ### [Change tokens](xref:fundamentals/primitives/change-tokens) -## [Open Web Interface for .NET (OWIN)](fundamentals/owin.md) -## [WebSockets](fundamentals/websockets.md) +## [Open Web Interface for .NET (OWIN)](xref:fundamentals/owin) +## [WebSockets](xref:fundamentals/websockets) ## [Microsoft.AspNetCore.App metapackage](xref:fundamentals/metapackage-app) ## [Microsoft.AspNetCore.All metapackage](xref:fundamentals/metapackage) ## [Choose between .NET Core and .NET Framework](/dotnet/articles/standard/choosing-core-framework-server)