Exemple #1
0
        ///

        /// This methos is used to raise the local event
        ///

        ///
        public static void Run(ClearCacheEvent @event)
        {
            Log.Info("ClearCacheEventHandler - Run", typeof(ClearCacheEventHandler));
            ClearCacheEventArgs args = new ClearCacheEventArgs(@event.CacheName);

            Event.RaiseEvent("clearcache:remote", new object[] { args });
        }
Exemple #2
0
        public void Trigger()
        {
            ClearCacheEvent inst = new ClearCacheEvent("Navigation");

            Sitecore.Eventing.EventManager.QueueEvent(inst);
        }