/// /// 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 }); }
public void Trigger() { ClearCacheEvent inst = new ClearCacheEvent("Navigation"); Sitecore.Eventing.EventManager.QueueEvent(inst); }