IWebUnityFactoryDependenciesHttpContextAccessor - свойство

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

Definition

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

См. также