/// <summary> /// Create RunnableCacheEvent instance with specified <b>CacheEvent</b> /// and <b>Listeners</b> objects. /// </summary> /// <param name="evt"> /// <b>CacheEvent</b> object. /// </param> /// <param name="listeners"> /// <b>Listeners</b> object. /// </param> /// <returns> /// <b>RunnableCacheEvent</b> instance. /// </returns> public static RunnableCacheEvent Instantiate(CacheEventArgs evt, Listeners listeners) { Debug.Assert(evt != null && listeners != null); RunnableCacheEvent task = new RunnableCacheEvent(); task.CacheEvent = evt; task.Listeners = listeners; return(task); }
/// <summary> /// Create RunnableCacheEvent instance with specified <b>CacheEvent</b> /// and <b>CacheListenerSupport</b> objects. /// </summary> /// <param name="evt"> /// <b>CacheEvent</b> object. /// </param> /// <param name="support"> /// <b>CacheListenerSupport</b> object. /// </param> /// <returns> /// <b>RunnableCacheEvent</b> instance. /// </returns> public static RunnableCacheEvent Instantiate(CacheEventArgs evt, CacheListenerSupport support) { Debug.Assert(evt != null && support != null); RunnableCacheEvent task = new RunnableCacheEvent(); task.CacheEvent = evt; task.CacheListenerSupport = support; return(task); }