Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions RueI/API/Elements/CachedElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ public CachedElement(float position, TimeSpan cacheTime, Func<string> contentGet
this.CacheTime = cacheTime;
}

/// <summary>
/// Initializes a new instance of the <see cref="CachedElement"/> class.
/// </summary>
/// <param name="cacheTime">A <see cref="TimeSpan"/> indicating how long to store cached text before regenerating.</param>
/// <param name="position"><inheritdoc cref="DynamicElement(float, Func{string})" path="/param[@name='position']"/></param>
/// <param name="contentGetter"><inheritdoc cref="DynamicElement(float, Func{ReferenceHub, string})" path="/param[@name='contentGetter']"/></param>
public CachedElement(float position, TimeSpan cacheTime, Func<ReferenceHub, string> contentGetter)
: base(position, contentGetter)
{
this.CacheTime = cacheTime;
}

/// <summary>
/// Gets a <see cref="TimeSpan"/> indicating how long data should be cached for before it is regenerated.
/// </summary>
Expand Down