Class ProductEventManager

This class has several events which are trigger when Catalog, Catalog node, Catalog entry changed (in Commerce Manager). Register to these events helps frontend site know when something happen with Catalog, CatalogNode and CatalogEntry in the backend site (Commerce Manager).

Inheritance
System.Object
ProductEventManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Business.Commerce
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
[Obsolete("Handling remote update events is no longer supported. React to update events locally, e.g. by handling an event of Mediachase.Commerce.Catalog.Events.CatalogEventBroadcaster, register a custom implementation of Mediachase.Commerce.Catalog.Events.CatalogEventListenerBase with the service locator or handle an event of EPiServer.Commerce.Catalog.Provider.CatalogEventHandler (for Content modelcatalog items). Will remain at least until March 2016.")]
public static class ProductEventManager

Fields

AssociationDeletedEventType

Declaration
public const string AssociationDeletedEventType = "AssociationDeleted"
Field Value
Type Description
System.String

AssociationUpdatedEventType

Declaration
public const string AssociationUpdatedEventType = "AssociationUpdated"
Field Value
Type Description
System.String

AssociationUpdatingEventType

Declaration
public const string AssociationUpdatingEventType = "AssociationUpdating"
Field Value
Type Description
System.String

CatalogDeletedEventType

Declaration
public const string CatalogDeletedEventType = "CatalogDeleted"
Field Value
Type Description
System.String

CatalogEntryDeletedEventType

Declaration
public const string CatalogEntryDeletedEventType = "CatalogEntryDeleted"
Field Value
Type Description
System.String

CatalogEntryUpdatedEventType

Declaration
public const string CatalogEntryUpdatedEventType = "CatalogEntryUpdated"
Field Value
Type Description
System.String

CatalogEntryUpdatingEventType

Declaration
public const string CatalogEntryUpdatingEventType = "CatalogEntryUpdating"
Field Value
Type Description
System.String

CatalogNodeDeletedEventType

Declaration
public const string CatalogNodeDeletedEventType = "CatalogNodeDeleted"
Field Value
Type Description
System.String

CatalogNodeUpdatedEventType

Declaration
public const string CatalogNodeUpdatedEventType = "CatalogNodeUpdated"
Field Value
Type Description
System.String

CatalogNodeUpdatingEventType

Declaration
public const string CatalogNodeUpdatingEventType = "CatalogNodeUpdating"
Field Value
Type Description
System.String

CatalogUpdatedEventType

Declaration
public const string CatalogUpdatedEventType = "CatalogUpdated"
Field Value
Type Description
System.String

CatalogUpdatingEventType

Declaration
public const string CatalogUpdatingEventType = "CatalogUpdating"
Field Value
Type Description
System.String

LanguageConfigurationChangedEventType

Declaration
public const string LanguageConfigurationChangedEventType = "LanguageConfigurationChanged"
Field Value
Type Description
System.String

RelationDeletedEventType

Declaration
public const string RelationDeletedEventType = "RelationDeleted"
Field Value
Type Description
System.String

RelationUpdatedEventType

Declaration
public const string RelationUpdatedEventType = "RelationUpdated"
Field Value
Type Description
System.String

RelationUpdatingEventType

Declaration
public const string RelationUpdatingEventType = "RelationUpdating"
Field Value
Type Description
System.String

Methods

AddEvent()

Register event handler

Declaration
public static void AddEvent()

CreateEvent(ProductUpdatedEventArgs)

Base on the event type, take appropriate handler(s) and invoke them.

Declaration
[Obsolete]
public static void CreateEvent(ProductUpdatedEventArgs eventArgs)
Parameters
Type Name Description
ProductUpdatedEventArgs eventArgs

The ProductUpdatedEventArgs instance containing the event data.

CreateEvent(CatalogContentUpdateEventArgs)

Base on the event type, take appropriate handler(s) and invoke them.

Declaration
public static void CreateEvent(CatalogContentUpdateEventArgs eventArgs)
Parameters
Type Name Description
CatalogContentUpdateEventArgs eventArgs

The CatalogContentUpdateEventArgs instance containing the event data.

CreateEvent(String, ProductUpdatedEventArgs)

Base on the event type, take appropriate handler(s) and invoke them.

Declaration
[Obsolete("Use the overload with 'CatalogContentUpdateEventArgs' instead. Will remain at least until November 2016.")]
public static void CreateEvent(string eventType, ProductUpdatedEventArgs eventArgs)
Parameters
Type Name Description
System.String eventType

Base on the event type, take appropriate handler(s) and invoke them.

ProductUpdatedEventArgs eventArgs

The ProductUpdatedEventArgs instance containing the event data.

CreateEvent(String, CatalogContentUpdateEventArgs)

Base on the event type, take appropriate handler(s) and invoke them.

Declaration
public static void CreateEvent(string eventType, CatalogContentUpdateEventArgs eventArgs)
Parameters
Type Name Description
System.String eventType

Base on the event type, take appropriate handler(s) and invoke them.

CatalogContentUpdateEventArgs eventArgs

The CatalogContentUpdateEventArgs instance containing the event data.

RaiseEvent(ProductUpdatedEventArgs)

Raise event when product is updated

Declaration
[Obsolete("Use the overload with 'CatalogContentUpdateEventArgs' instead. Will remain at least until November 2016.")]
public static void RaiseEvent(ProductUpdatedEventArgs e)
Parameters
Type Name Description
ProductUpdatedEventArgs e

Event arguments

RaiseEvent(CatalogContentUpdateEventArgs)

Raise event when product is updated

Declaration
public static void RaiseEvent(CatalogContentUpdateEventArgs e)
Parameters
Type Name Description
CatalogContentUpdateEventArgs e

Event arguments

Events

AssociationDataDeleted

Occurs when an association is updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> AssociationDataDeleted
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

AssociationDataUpdated

Occurs when an association is deleted.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> AssociationDataUpdated
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

AssociationDataUpdating

Occurs when an association is about to be updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> AssociationDataUpdating
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

AssociationDeleted

Occurs when an association is updated.

Declaration
[Obsolete("Use 'AssociationDataDeleted' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> AssociationDeleted
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

AssociationUpdated

Occurs when an association is deleted.

Declaration
[Obsolete("Use 'AssociationDataUpdated' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> AssociationUpdated
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

AssociationUpdating

Occurs when an association is about to be updated.

Declaration
[Obsolete("Use 'AssociationDataUpdating' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> AssociationUpdating
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogDataDeleted

Occurs when a catalog is deleted.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> CatalogDataDeleted
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

CatalogDataUpdated

Occurs when a catalog is updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> CatalogDataUpdated
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

CatalogDataUpdating

Occurs when a catalog is about to be updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> CatalogDataUpdating
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

CatalogDeleted

Occurs when a catalog is deleted.

Declaration
[Obsolete("Use 'CatalogDataDeleted' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogDeleted
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogEntryDeleted

Occurs when a catalog entry is deleted.

Declaration
[Obsolete("Use 'EntryDeleted' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogEntryDeleted
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogEntryUpdated

Occurs when a catalog entry is updated.

Declaration
[Obsolete("Use 'EntryUpdated' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogEntryUpdated
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogEntryUpdating

Occurs when a catalog entry is about to be updated.

Declaration
[Obsolete("Use 'EntryUpdating' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogEntryUpdating
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogNodeDeleted

Occurs when a catalog node is deleted.

Declaration
[Obsolete("Use 'NodeDeleted' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogNodeDeleted
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogNodeUpdated

Occurs when a catalog node is updated.

Declaration
[Obsolete("Use 'NodeUpdated' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogNodeUpdated
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogNodeUpdating

Occurs when a catalog node is about to be updated.

Declaration
[Obsolete("Use 'NodeUpdating' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogNodeUpdating
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogUpdated

Occurs when a catalog is updated.

Declaration
[Obsolete("Use 'CatalogDataUpdated' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogUpdated
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

CatalogUpdating

Occurs when a catalog is about to be updated.

Declaration
[Obsolete("Use 'CatalogDataUpdating' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> CatalogUpdating
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

EntryDeleted

Occurs when a catalog entry is deleted.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> EntryDeleted
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

EntryUpdated

Occurs when a catalog entry is updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> EntryUpdated
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

EntryUpdating

Occurs when a catalog entry is about to be updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> EntryUpdating
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

LanguageConfigurationChanged

Occurs when catalog language configuration has changed.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> LanguageConfigurationChanged
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

NodeDeleted

Occurs when a catalog node is deleted.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> NodeDeleted
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

NodeUpdated

Occurs when a catalog node is updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> NodeUpdated
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

NodeUpdating

Occurs when a catalog node is about to be updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> NodeUpdating
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

RelationDataDeleted

Occurs when relation is deleted.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> RelationDataDeleted
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

RelationDataUpdated

Occurs when a relation is updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> RelationDataUpdated
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

RelationDataUpdating

Occurs when a relation is about to be updated.

Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> RelationDataUpdating
Event Type
Type Description
System.EventHandler<CatalogContentUpdateEventArgs>

RelationDeleted

Occurs when relation is deleted.

Declaration
[Obsolete("Use 'RelationDataDeleted' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> RelationDeleted
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

RelationUpdated

Occurs when a relation is updated.

Declaration
[Obsolete("Use 'RelationDataUpdated' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> RelationUpdated
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>

RelationUpdating

Occurs when a relation is about to be updated.

Declaration
[Obsolete("Use 'RelationDataUpdating' instead. Will remain at least until November 2016.")]
public static event EventHandler<ProductUpdatedEventArgs> RelationUpdating
Event Type
Type Description
System.EventHandler<ProductUpdatedEventArgs>