示例#1
0
        /// <summary>
        /// Raised when items are removed from the cache.
        /// </summary>
        /// <param name="sender">The object that raised the event.</param>
        /// <param name="e">The <see cref="Collections.Generic.ItemsRemovedEventArgs{TKey}"/> instance containing the event data.</param>
        private void InnerCache_ItemsRemoved(object sender, Collections.Generic.ItemsRemovedEventArgs <TKey> e)
        {
            lock (_syncRoot)
            {
                _count -= e.Items.Count;
            }

            MetricReporter.NotifySizeChange(Name);
        }
示例#2
0
 /// <summary>
 /// Handles the ItemsRemoved event of the cache control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Collections.Generic.ItemsRemovedEventArgs{System.Int64}"/> instance containing the event data.</param>
 void cache_ItemsRemoved(object sender, Collections.Generic.ItemsRemovedEventArgs <long> e)
 {
 }