Class HybridHttpOrThreadLocal<T>
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Helper class to store variables that should be cached either on HTTP context or on thread local storage
Inheritance
Implements
Inherited Members
Namespace: EPiServer.ServiceLocation.Internal
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public class HybridHttpOrThreadLocal<T> : IDisposable
Type Parameters
Name | Description |
---|---|
T |
Constructors
HybridHttpOrThreadLocal(Guid, Func<T>, IRequestCache)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates new instance of HybridHttpOrThreadLocal<T>
Declaration
public HybridHttpOrThreadLocal(Guid uniqueId, Func<T> valueFactory, IRequestCache requestCache)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | uniqueId | The unique id for this instance |
System.Func<T> | valueFactory | The factory to get not cached value |
IRequestCache | requestCache | The request cache to use |
Properties
UniqueId
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The unique id for this instance
Declaration
public Guid UniqueId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Value
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Accessor to get value from cache or factory (if not cached)
Declaration
public T Value { get; }
Property Value
Type | Description |
---|---|
T |
Methods
Dispose()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public void Dispose()
Dispose(Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Dispose implementation
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | indicate if disposing |