IWebUnityFactoryDependenciesHttpContextAccessor - свойство

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

Definition

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

См. также