protected virtual void FireAfterReIndex(ReIndexEventArgs e) { if (AfterReIndex != null) { AfterReIndex(this, e); } }
public void ReIndex() { ReIndexEventArgs e = new ReIndexEventArgs(); FireBeforeReIndex(e); if (!e.Cancel) { // Create new index IndexWriter w = ContentIndex(true); w.Close(); //this is a totally blank reindex, so we don't index anything by default. //Everything is handled by event handlers. //we should really get a async event on umbraco's reindexing so we could just tag along with that one //instead of setting up our own UI FireAfterReIndex(e); } }
protected virtual void FireBeforeReIndex(ReIndexEventArgs e) { _e.FireCancelableEvent(BeforeReIndex, this, e); }
protected virtual void FireAfterReIndex(ReIndexEventArgs e) { if (AfterReIndex != null) AfterReIndex(this, e); }