Class CatalogEventBroadcaster
Listens to catalog events and broadcasts remote events for certain event types.
Inherited Members
Namespace: Mediachase.Commerce.Catalog.Events
Assembly: Mediachase.Commerce.dll
Version: 14.26.0Syntax
public class CatalogEventBroadcaster : CatalogEventListenerBase
Constructors
CatalogEventBroadcaster(IApplicationContext, ICatalogEvents, IOptions<CatalogOptions>)
Initializes a new instance of the CatalogEventBroadcaster class.
Declaration
public CatalogEventBroadcaster(IApplicationContext applicationContext, ICatalogEvents catalogEvents, IOptions<CatalogOptions> options)
Parameters
Type | Name | Description |
---|---|---|
IApplicationContext | applicationContext | The application context. |
ICatalogEvents | catalogEvents | Catalog event service. |
Microsoft.Extensions.Options.IOptions<CatalogOptions> | options | The catalog options |
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 |
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
CatalogContentUpdated
Declaration
public static event EventHandler<CatalogContentUpdateEventArgs> CatalogContentUpdated
Event Type
Type | Description |
---|---|
System.EventHandler<CatalogContentUpdateEventArgs> |