IWebUnityFactoryDependenciesHttpContextAccessor - свойство

Provides access to the current HttpContext, if one is available.

Definition

Пространство имён: Tessa.Web.Services
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
C#
IHttpContextAccessor HttpContextAccessor { get; }

Значение свойства

IHttpContextAccessor

Заметки

This interface should be used with caution. It relies on AsyncLocalT which can have a negative performance impact on async calls. It also creates a dependency on "ambient state" which can make testing more difficult.

См. также