TimePurgePredicate.ShouldPurgeFromTime(TimeSpan, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks to see if the message should be purged.
Message should be purged if its relative age is greater than maxRelativeMessageAge
and has been in the cache longer than the minTimeInCache.
public virtual bool ShouldPurgeFromTime (TimeSpan timeInCache, TimeSpan relativeAge);
abstract member ShouldPurgeFromTime : TimeSpan * TimeSpan -> bool
override this.ShouldPurgeFromTime : TimeSpan * TimeSpan -> bool
Public Overridable Function ShouldPurgeFromTime (timeInCache As TimeSpan, relativeAge As TimeSpan) As Boolean
Parameters
- timeInCache
- TimeSpan
The amount of time message has been in this cache
- relativeAge
- TimeSpan
The age of message relative to the most recent events read
Returns
true
if the message should be purged; otherwise false
.