| AspNetLayoutRendererBaseHttpContextAccessor Property |
Provides access to the current request HttpContext.
Namespace:
NLog.Web.LayoutRenderers
Assemblies:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
NLog.Web (in NLog.Web.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax public IHttpContextAccessor HttpContextAccessor { get; set; }
Public Property HttpContextAccessor As IHttpContextAccessor
Get
Set
Dim instance As AspNetLayoutRendererBase
Dim value As IHttpContextAccessor
value = instance.HttpContextAccessor
instance.HttpContextAccessor = value
member HttpContextAccessor : IHttpContextAccessor with get, set
Return Value
Type:
IHttpContextAccessorHttpContextAccessor or
nullSee Also