mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Removing unused code in indexing handlers
--HG-- branch : 1.x
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
using Orchard.ContentManagement.Handlers;
|
using Orchard.ContentManagement.Handlers;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.Tasks.Indexing;
|
using Orchard.Tasks.Indexing;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Orchard.Indexing.Handlers {
|
namespace Orchard.Indexing.Handlers {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -9,16 +8,10 @@ namespace Orchard.Indexing.Handlers {
|
|||||||
/// is published, and to delete them when the content item is unpublished.
|
/// is published, and to delete them when the content item is unpublished.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CreateIndexingTaskHandler : ContentHandler {
|
public class CreateIndexingTaskHandler : ContentHandler {
|
||||||
private const string SearchIndexName = "Search";
|
|
||||||
private readonly IIndexingTaskManager _indexingTaskManager;
|
private readonly IIndexingTaskManager _indexingTaskManager;
|
||||||
private readonly IEnumerable<IIndexNotifierHandler> _indexNotifierHandlers;
|
|
||||||
|
|
||||||
public CreateIndexingTaskHandler(
|
public CreateIndexingTaskHandler(IIndexingTaskManager indexingTaskManager) {
|
||||||
IIndexingTaskManager indexingTaskManager,
|
|
||||||
IEnumerable<IIndexNotifierHandler> indexNotifierHandlers
|
|
||||||
) {
|
|
||||||
_indexingTaskManager = indexingTaskManager;
|
_indexingTaskManager = indexingTaskManager;
|
||||||
_indexNotifierHandlers = indexNotifierHandlers;
|
|
||||||
|
|
||||||
OnPublished<ContentPart>(CreateIndexingTask);
|
OnPublished<ContentPart>(CreateIndexingTask);
|
||||||
OnUnpublished<ContentPart>(CreateIndexingTask);
|
OnUnpublished<ContentPart>(CreateIndexingTask);
|
||||||
|
Reference in New Issue
Block a user