Class RequestStockValue<TValue>
Defines a lazy loaded value stored in the request stock helper
public class RequestStockValue<TValue> : CMSLazy<TValue>
Type Parameters
TValue
- Inheritance
-
objectCMSLazy<TValue>RequestStockValue<TValue>
- Inherited Members
- Extension Methods
Constructors
RequestStockValue(string, Func<TValue>)
Constructor
public RequestStockValue(string requestStockKey, Func<TValue> initializer)
Parameters
requestStockKey
stringRequest stock key
initializer
Func<TValue>Initializer for the new value
RequestStockValue(string, TValue)
Constructor
public RequestStockValue(string requestStockKey, TValue defaultValue = default)
Parameters
requestStockKey
stringRequest stock key
defaultValue
TValueDefault value