With Opticon around the corner, we'll be canceling this month's (Sept) Happy Hour.

Class CatalogEventBroadcaster

Listens to catalog events and broadcasts remote events for certain event types.

Inheritance
System.Object
CatalogEventBroadcaster
Namespace: Mediachase.Commerce.Catalog.Events
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public class CatalogEventBroadcaster : CatalogEventListenerBase

Constructors

CatalogEventBroadcaster(IApplicationContext)

Declaration
[Obsolete("Use constructor with ICatalogEvents parameter. Will remain at least until May 2019.")]
public CatalogEventBroadcaster(IApplicationContext applicationContext)
Parameters
Type Name Description
IApplicationContext applicationContext

CatalogEventBroadcaster(IApplicationContext, ICatalogEvents)

Initializes a new instance of the CatalogEventBroadcaster class.

Declaration
public CatalogEventBroadcaster(IApplicationContext applicationContext, ICatalogEvents catalogEvents)
Parameters
Type Name Description
IApplicationContext applicationContext

The application context.

ICatalogEvents catalogEvents

Catalog event service.

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

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

CatalogLanguageUpdatedEventType

Declaration
public const string CatalogLanguageUpdatedEventType = "CatalogLanguageUpdated"
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

CatalogUpdatedEventType

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

CommerceProductUpdated

Declaration
public static readonly Guid CommerceProductUpdated
Field Value
Type Description
System.Guid

EventRaiserId

Declaration
public static readonly Guid EventRaiserId
Field Value
Type Description
System.Guid

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

Properties

Instance

Declaration
[Obsolete("Get the instance from the service locator. Will remain at least until May 2019.")]
public static CatalogEventBroadcaster Instance { get; }
Property Value
Type Description
CatalogEventBroadcaster

Methods

AssociationUpdated(Object, AssociationEventArgs)

Send remote event for association update.

Declaration
public override void AssociationUpdated(object source, AssociationEventArgs args)
Parameters
Type Name Description
System.Object source

The source.

AssociationEventArgs args

The AssociationEventArgs instance containing the event data.

Overrides

CatalogUpdated(Object, CatalogEventArgs)

Send remote event for catalog update.

Declaration
public override void CatalogUpdated(object source, CatalogEventArgs args)
Parameters
Type Name Description
System.Object source

The source.

CatalogEventArgs args

The CatalogEventArgs instance containing the event data.

Overrides

EntryUpdated(Object, EntryEventArgs)

Send remote event for entry update.

Declaration
public override void EntryUpdated(object source, EntryEventArgs args)
Parameters
Type Name Description
System.Object source

The source.

EntryEventArgs args

The EntryEventArgs instance containing the event data.

Overrides

NodeUpdated(Object, NodeEventArgs)

Send remote event for node update.

Declaration
public override void NodeUpdated(object source, NodeEventArgs args)
Parameters
Type Name Description
System.Object source

The source.

NodeEventArgs args

The NodeEventArgs instance containing the event data.

Overrides

RaiseEvent(CatalogContentUpdateEventArgs)

Raise event when product is updated

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

Event arguments

RelationUpdated(Object, RelationEventArgs)

Send remote event for relation update.

Declaration
public override void RelationUpdated(object source, RelationEventArgs args)
Parameters
Type Name Description
System.Object source

The source.

RelationEventArgs args

The RelationEventArgs instance containing the event data.

Overrides

Events

LocalAssociationDeleted

Occurs when an association is deleted.

Declaration
[Obsolete("Superseded by ICatalogEvents.AssociationDeleted. Will remain at least until May 2019.")]
public event EventHandler<DeletedAssociationEventArgs> LocalAssociationDeleted
Event Type
Type Description
System.EventHandler<DeletedAssociationEventArgs>

LocalAssociationUpdated

Occurs when an association is updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.AssociationUpdated. Will remain at least until May 2019.")]
public event EventHandler<AssociationEventArgs> LocalAssociationUpdated
Event Type
Type Description
System.EventHandler<AssociationEventArgs>

LocalAssociationUpdating

Occurs when an association is about to be updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.AssociationUpdating. Will remain at least until May 2019.")]
public event EventHandler<AssociationEventArgs> LocalAssociationUpdating
Event Type
Type Description
System.EventHandler<AssociationEventArgs>

LocalCatalogDeleted

Occurs when a catalog is deleted.

Declaration
[Obsolete("Superseded by ICatalogEvents.CatalogDeleted. Will remain at least until May 2019.")]
public event EventHandler<DeletedCatalogEventArgs> LocalCatalogDeleted
Event Type
Type Description
System.EventHandler<DeletedCatalogEventArgs>

LocalCatalogLanguageUpdated

Occurs when a catalog is updated with a new language configuration (available or default languages)

Declaration
[Obsolete("Superseded by ICatalogEvents.CatalogLanguageUpdated. Will remain at least until May 2019.")]
public event EventHandler<CatalogLanguageEventArgs> LocalCatalogLanguageUpdated
Event Type
Type Description
System.EventHandler<CatalogLanguageEventArgs>

LocalCatalogUpdated

Occurs when a catalog is updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.CatalogUpdated. Will remain at least until May 2019.")]
public event EventHandler<CatalogEventArgs> LocalCatalogUpdated
Event Type
Type Description
System.EventHandler<CatalogEventArgs>

LocalCatalogUpdating

Occurs when a catalog is about to be updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.CatalogUpdating. Will remain at least until May 2019.")]
public event EventHandler<CatalogEventArgs> LocalCatalogUpdating
Event Type
Type Description
System.EventHandler<CatalogEventArgs>

LocalEntryDeleted

Occurs when a catalog entry is deleted.

Declaration
[Obsolete("Superseded by ICatalogEvents.EntryDeleted. Will remain at least until May 2019.")]
public event EventHandler<DeletedEntryEventArgs> LocalEntryDeleted
Event Type
Type Description
System.EventHandler<DeletedEntryEventArgs>

LocalEntryUpdated

Occurs when a catalog entry is updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.EntryUpdated. Will remain at least until May 2019.")]
public event EventHandler<EntryEventArgs> LocalEntryUpdated
Event Type
Type Description
System.EventHandler<EntryEventArgs>

LocalEntryUpdating

Occurs when a catalog entry is about to be updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.EntryUpdating. Will remain at least until May 2019.")]
public event EventHandler<EntryEventArgs> LocalEntryUpdating
Event Type
Type Description
System.EventHandler<EntryEventArgs>

LocalNodeDeleted

Occurs when a catalog node is deleted;

Declaration
[Obsolete("Superseded by ICatalogEvents.NodeDeleted. Will remain at least until May 2019.")]
public event EventHandler<DeletedNodeEventArgs> LocalNodeDeleted
Event Type
Type Description
System.EventHandler<DeletedNodeEventArgs>

LocalNodeUpdated

Occurs when a catalog node is updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.NodeUpdated. Will remain at least until May 2019.")]
public event EventHandler<NodeEventArgs> LocalNodeUpdated
Event Type
Type Description
System.EventHandler<NodeEventArgs>

LocalNodeUpdating

Occurs when a catalog node is about to be updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.NodeUpdating. Will remain at least until May 2019.")]
public event EventHandler<NodeEventArgs> LocalNodeUpdating
Event Type
Type Description
System.EventHandler<NodeEventArgs>

LocalRelationDeleted

Occurs when a relation is deleted.

Declaration
[Obsolete("Superseded by ICatalogEvents.RelationDeleted. Will remain at least until May 2019.")]
public event EventHandler<DeletedRelationEventArgs> LocalRelationDeleted
Event Type
Type Description
System.EventHandler<DeletedRelationEventArgs>

LocalRelationUpdated

Occurs when a relation is updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.RelationUpdated. Will remain at least until May 2019.")]
public event EventHandler<RelationEventArgs> LocalRelationUpdated
Event Type
Type Description
System.EventHandler<RelationEventArgs>

LocalRelationUpdating

Occurs when a relation is about to be updated.

Declaration
[Obsolete("Superseded by ICatalogEvents.RelationUpdating. Will remain at least until May 2019.")]
public event EventHandler<RelationEventArgs> LocalRelationUpdating
Event Type
Type Description
System.EventHandler<RelationEventArgs>