Class CatalogKeyEventBroadcaster
The broadcaster for CatalogKey related events
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Engine.Events
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class CatalogKeyEventBroadcaster
Constructors
CatalogKeyEventBroadcaster()
Declaration
public CatalogKeyEventBroadcaster()
Fields
CatalogKeyEventGuid
Declaration
public static readonly Guid CatalogKeyEventGuid
Field Value
| Type | Description |
|---|---|
| System.Guid |
EventRaiserId
Declaration
public static readonly Guid EventRaiserId
Field Value
| Type | Description |
|---|---|
| System.Guid |
Methods
OnInventoryUpdated(Object, InventoryUpdateEventArgs)
Trigger InventoryUpdated.
Declaration
public virtual void OnInventoryUpdated(object source, InventoryUpdateEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | source | The updated inventory being the source of the raised event. |
| InventoryUpdateEventArgs | args | The InventoryUpdateEventArgs instance containing the event data. |
OnPriceUpdated(Object, PriceUpdateEventArgs)
Trigger PriceUpdated.
Declaration
public virtual void OnPriceUpdated(object source, PriceUpdateEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | source | The updated prices being the source of the raised event. |
| PriceUpdateEventArgs | args | The PriceUpdateEventArgs instance containing the event data. |
RaiseEvent(CatalogKeyEventArgs)
Raise event when prices or inventories are updated.
Declaration
public void RaiseEvent(CatalogKeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| CatalogKeyEventArgs | e | Event arguments |
Serialize(CatalogKeyEventArgs)
Serialize update event arguments
Declaration
protected virtual byte[] Serialize(CatalogKeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| CatalogKeyEventArgs | e | Catalog key event arguments |
Returns
| Type | Description |
|---|---|
| System.Byte[] | Byte array of the event arguments in binary format. |
Events
InventoryUpdated
Event raised when an inventory has been updated.
Declaration
public event EventHandler<InventoryUpdateEventArgs> InventoryUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<InventoryUpdateEventArgs> |
PriceUpdated
Event raised when one or many prices have been updated.
Declaration
public event EventHandler<PriceUpdateEventArgs> PriceUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<PriceUpdateEventArgs> |