/// <summary> /// Process an Remove entry processor. /// </summary> /// <param name="entry"> /// The <b>IInvocableCacheEntry</b> to process. /// </param> /// <returns> /// The value removed. /// </returns> public override Object Process(IInvocableCacheEntry entry) { Object value = entry.Value; entry.Remove(false); return(value); }
/// <summary> /// Process an <see cref="IInvocableCacheEntry"/>. /// </summary> /// <param name="entry"> /// The <b>IInvocableCacheEntry</b> to process. /// </param> /// <returns> /// The result of the processing, if any. /// </returns> public override object Process(IInvocableCacheEntry entry) { if (entry.IsPresent && InvocableCacheHelper.EvaluateEntry(m_filter, entry)) { entry.Remove(false); return(null); } return(m_return ? entry.Value : null); }
/// <summary> /// Process an RemoveValue entry processor. /// </summary> /// <param name="entry"> /// The <b>IInvocableCacheEntry</b> to process. /// </param> /// <returns> /// The result of the processing: true, if the entry is found and /// removed; false otherwise. /// </returns> public override object Process(IInvocableCacheEntry entry) { if (entry.IsPresent) { Object valueCurrent = entry.Value; if (Equals(valueCurrent, m_value)) { entry.Remove(false); return(true); } } return(false); }
/// <summary> /// Process an RemoveBlind entry processor. /// </summary> /// <param name="entry"> /// The <b>IInvocableCacheEntry</b> to process. /// </param> /// <returns> /// The result of the processing. /// </returns> public override object Process(IInvocableCacheEntry entry) { entry.Remove(false); return(null); }