Summary
This class uses a delegate to get a metadata value. The result of the delegate
will be cached and the cached value will be returned for subsequent calls to
Wyam.Common.Meta.CachedDelegateMetadataValue.Get(Wyam.Common.Meta.IMetadata)
.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .Meta - Interfaces
- Base Types
-
- Object
- Delegate
Metadata Value
graph BT
Type-->Base0["DelegateMetadataValue"]
click Base0 "/api/Wyam.Common.Meta/DelegateMetadataValue"
Base0-->Base1["Object"]
Type-.->Interface0["IMetadataValue"]
click Interface0 "/api/Wyam.Common.Meta/IMetadataValue"
Type["CachedDelegateMetadataValue"]
class Type type-node
Syntax
public class CachedDelegateMetadataValue : DelegateMetadataValue, IMetadataValue
Constructors
Name | Summary |
---|---|
Cached |
Initializes a new instance of the Wyam.Common.Meta.CachedDelegateMetadataValue class.
The specified delegate should be thread-safe.
|
Methods
Name | Value | Summary |
---|---|---|
Get |
Object |
Lazily loads a metadata value. This method will be called
for each request and the return object will
be processed like any other metadata value. The implementation
of this method must be thread-safe.
|