Edytuj

Udostępnij za pośrednictwem


TimePurgePredicate.ShouldPurgeFromTime(TimeSpan, TimeSpan) Method

Definition

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.

Applies to