Add a "OnUnpublish" event to content handlers

Work Item: 16856

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-12-02 20:30:13 -08:00
parent d336bfa6cf
commit cc44d1d7dd
12 changed files with 72 additions and 12 deletions

View File

@@ -23,6 +23,7 @@ namespace Orchard.Indexing.Handlers {
_indexNotifierHandlers = indexNotifierHandlers;
OnPublished<ContentPart>(CreateIndexingTask);
OnUnpublished<ContentPart>(CreateIndexingTask);
OnRemoved<ContentPart>(RemoveIndexingTask);
}