/// <summary> /// Constructor. /// </summary> /// <param name="parent"></param> internal CacheEventsListener(Cache.CacheEventsListener parent) { _listener = parent; }
/// <summary> /// Constructor. /// </summary> /// <param name="parent"></param> /// <param name="nCache"></param> internal CacheEventsListener(Cache.CacheEventsListener parent, Alachisoft.NCache.Caching.Cache nCache) { _listener = parent; _nCache = nCache; _customRemoveCallback = new CustomRemoveCallback(this.OnCustomRemoveCallback); _customUpdateCallback = new CustomUpdateCallback(this.OnCustomUpdateCallback); _nCache.CustomRemoveCallbackNotif += _customRemoveCallback; _nCache.CustomUpdateCallbackNotif += _customUpdateCallback; }