Class RequestOrFactory<T>

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Helper class to store variables that should be cached on HTTP context.

Inheritance
System.Object
RequestOrFactory<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.ServiceLocation.Internal
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public class RequestOrFactory<T>
Type Parameters
Name Description
T

Constructors

RequestOrFactory(Guid, Func<T>, IRequestCache)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Constructs an instance of RequestOrFactory<T>

Declaration
public RequestOrFactory(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

Extension Methods