TimePurgePredicate.ShouldPurgFromTime(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 ShouldPurgFromTime (TimeSpan timeInCache, TimeSpan relativeAge);
abstract member ShouldPurgFromTime : TimeSpan * TimeSpan -> bool
override this.ShouldPurgFromTime : TimeSpan * TimeSpan -> bool
Public Overridable Function ShouldPurgFromTime (timeInCache As TimeSpan, relativeAge As TimeSpan) As Boolean
Parameters
- timeInCache
- TimeSpan
amount of time message has been in this cache
- relativeAge
- TimeSpan
Age of message relative to the most recent events read