IWebUnityFactoryDependenciesHttpContextAccessor - свойство

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

Definition

Пространство имён: Tessa.Web.Services
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
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.

См. также