Ejemplo n.º 1
0
 protected virtual void FireAfterReIndex(ReIndexEventArgs e)
 {
     if (AfterReIndex != null)
     {
         AfterReIndex(this, e);
     }
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 protected virtual void FireBeforeReIndex(ReIndexEventArgs e)
 {
     _e.FireCancelableEvent(BeforeReIndex, this, e);
 }
Ejemplo n.º 4
0
 protected virtual void FireAfterReIndex(ReIndexEventArgs e)
 {
     if (AfterReIndex != null)
         AfterReIndex(this, e);
 }
Ejemplo n.º 5
0
        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);
            }
        }
Ejemplo n.º 6
0
 protected virtual void FireBeforeReIndex(ReIndexEventArgs e)
 {
     _e.FireCancelableEvent(BeforeReIndex, this, e);
 }