ContainerProviderHttpContextAccessor - свойство

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

Definition

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

См. также