Exemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="parent"></param>
 internal CacheEventsListener(Cache.CacheEventsListener parent)
 {
     _listener = parent;
 }
Exemplo n.º 2
0
            /// <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;


            }