Class HybridAccessorBase<T>
Provides a base class for hybrid accessors.
Inheritance
System.Object
Namespace: Umbraco.Web
Assembly: Umbraco.Web.dll
Syntax
public abstract class HybridAccessorBase<T>
where T : class
Type Parameters
Name | Description |
---|---|
T | The type of the accessed object. |
Remarks
Hybrid accessors store the accessed object in HttpContext if they can, otherwise they rely on the logical call context, to maintain an ambient object that flows with async.
Constructors
View SourceHybridAccessorBase(IHttpContextAccessor)
Declaration
protected HybridAccessorBase(IHttpContextAccessor httpContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
IHttpContextAccessor | httpContextAccessor |
Properties
View SourceItemKey
Declaration
protected abstract string ItemKey { get; }
Property Value
Type | Description |
---|---|
System.String |
Value
Declaration
protected T Value { get; set; }
Property Value
Type | Description |
---|---|
T |