mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +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;
|
||||
using Orchard.Tasks.Indexing;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Orchard.Indexing.Handlers {
|
||||
/// <summary>
|
||||
@@ -9,16 +8,10 @@ namespace Orchard.Indexing.Handlers {
|
||||
/// is published, and to delete them when the content item is unpublished.
|
||||
/// </summary>
|
||||
public class CreateIndexingTaskHandler : ContentHandler {
|
||||
private const string SearchIndexName = "Search";
|
||||
private readonly IIndexingTaskManager _indexingTaskManager;
|
||||
private readonly IEnumerable<IIndexNotifierHandler> _indexNotifierHandlers;
|
||||
|
||||
public CreateIndexingTaskHandler(
|
||||
IIndexingTaskManager indexingTaskManager,
|
||||
IEnumerable<IIndexNotifierHandler> indexNotifierHandlers
|
||||
) {
|
||||
public CreateIndexingTaskHandler(IIndexingTaskManager indexingTaskManager) {
|
||||
_indexingTaskManager = indexingTaskManager;
|
||||
_indexNotifierHandlers = indexNotifierHandlers;
|
||||
|
||||
OnPublished<ContentPart>(CreateIndexingTask);
|
||||
OnUnpublished<ContentPart>(CreateIndexingTask);
|
||||
|
Reference in New Issue
Block a user