November Happy Hour will be moved to Thursday December 5th.

Class CatalogKeyEventBroadcaster

The broadcaster for CatalogKey related events

Inheritance
System.Object
CatalogKeyEventBroadcaster
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: Mediachase.Commerce.Engine.Events
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
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)

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
[Obsolete("Superseded by an internal implementation. Use a BinaryFormatter instead. Will remain at least until January 2019.")]
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>