C# Class OxxCommerceStarterKit.Web.Business.Search.CatalogContentEventIndexer

Datei anzeigen Open project: episerver/Commerce-Demo-Kit

Public Properties

Property Type Description
IndexingEnabled bool

Public Methods

Method Description
CatalogContentEventIndexer ( ILogger logger, IContentEvents contentEvents ) : System
EnableEventListeners ( ) : void

Protected Methods

Method Description
IndexProduct ( IIndexableContent p ) : void
LogEventDetails ( EventNotificationEventArgs eventNotificationEventArgs, string eventType ) : void
PublishedContent ( object sender, ContentEventArgs e ) : void

Note! This method should not fail, it will prevent the product from being saved.

Private Methods

Method Description
CatalogEventUpdated ( object sender, EventNotificationEventArgs eventNotificationEventArgs ) : void
CatalogKeyEventUpdated ( object sender, EventNotificationEventArgs eventNotificationEventArgs ) : void
DeSerialize ( byte buffer ) : EventArgs
GetParent ( CatalogContentBase content ) : EntryContentBase
IsSelfRaised ( EventNotificationEventArgs e ) : bool

Method Details

CatalogContentEventIndexer() public method

public CatalogContentEventIndexer ( ILogger logger, IContentEvents contentEvents ) : System
logger ILogger
contentEvents IContentEvents
return System

EnableEventListeners() public method

public EnableEventListeners ( ) : void
return void

IndexProduct() protected method

protected IndexProduct ( IIndexableContent p ) : void
p IIndexableContent
return void

LogEventDetails() protected method

protected LogEventDetails ( EventNotificationEventArgs eventNotificationEventArgs, string eventType ) : void
eventNotificationEventArgs EventNotificationEventArgs
eventType string
return void

PublishedContent() protected method

Note! This method should not fail, it will prevent the product from being saved.
protected PublishedContent ( object sender, ContentEventArgs e ) : void
sender object
e ContentEventArgs
return void

Property Details

IndexingEnabled public_oe static_oe property

Set this flag to temporary disable indexing while running long jobs. It is enabled by default.
public static bool IndexingEnabled
return bool