Class EventContext
This class is reponsible for the following:
- Loading all the plugins.
- Binding those plugins to appropriate handlers
- Providing methods to generate events
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Catalog
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class EventContext
Properties
Instance
Returns an instance of event context class
Declaration
public static EventContext Instance { get; }
Property Value
Type | Description |
---|---|
EventContext | The instance. |
Methods
RaiseAssociationDeletedEvent(CatalogAssociationDto, DeletedAssociationEventArgs)
Raises the association deleted event.
Declaration
public void RaiseAssociationDeletedEvent(CatalogAssociationDto sender, DeletedAssociationEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogAssociationDto | sender | The sender. |
DeletedAssociationEventArgs | args | The AssociationEventArgs instance containing the event data. |
RaiseAssociationUpdatedEvent(CatalogAssociationDto, AssociationEventArgs)
Raises the association updated event.
Declaration
public void RaiseAssociationUpdatedEvent(CatalogAssociationDto sender, AssociationEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogAssociationDto | sender | The sender. |
AssociationEventArgs | args | The AssociationEventArgs instance containing the event data. |
RaiseAssociationUpdatingEvent(CatalogAssociationDto, AssociationEventArgs)
Raises the association updating event.
Declaration
public void RaiseAssociationUpdatingEvent(CatalogAssociationDto sender, AssociationEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogAssociationDto | sender | The sender. |
AssociationEventArgs | args | The AssociationEventArgs instance containing the event data. |
RaiseCatalogDeletedEvent(CatalogDto, DeletedCatalogEventArgs)
Raises the catalog deleted event.
Declaration
public void RaiseCatalogDeletedEvent(CatalogDto sender, DeletedCatalogEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogDto | sender | The sender. |
DeletedCatalogEventArgs | args | The DeletedCatalogEventArgs instance containing the event data. |
RaiseCatalogLanguageUpdatedEvent(CatalogDto, CatalogLanguageEventArgs)
Raises the catalog language updated event.
Declaration
public void RaiseCatalogLanguageUpdatedEvent(CatalogDto sender, CatalogLanguageEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogDto | sender | The sender. |
CatalogLanguageEventArgs | args | The CatalogLanguageEventArgs instance containing the event data. |
RaiseCatalogUpdatedEvent(CatalogDto, CatalogEventArgs)
Raises the catalog updated event.
Declaration
public void RaiseCatalogUpdatedEvent(CatalogDto sender, CatalogEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogDto | sender | The sender. |
CatalogEventArgs | args | The CatalogEventArgs instance containing the event data. |
RaiseCatalogUpdatingEvent(CatalogDto, CatalogEventArgs)
Raises the catalog updating event.
Declaration
public void RaiseCatalogUpdatingEvent(CatalogDto sender, CatalogEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogDto | sender | The sender. |
CatalogEventArgs | args | The CatalogEventArgs instance containing the event data. |
RaiseEntryDeletedEvent(CatalogEntryDto, DeletedEntryEventArgs)
Raises the entry updated event.
Declaration
public void RaiseEntryDeletedEvent(CatalogEntryDto sender, DeletedEntryEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogEntryDto | sender | The sender. |
DeletedEntryEventArgs | args | The EntryEventArgs instance containing the event data. |
RaiseEntryUpdatedEvent(CatalogEntryDto, EntryEventArgs)
Raises the entry updated event.
Declaration
public void RaiseEntryUpdatedEvent(CatalogEntryDto sender, EntryEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogEntryDto | sender | The sender. |
EntryEventArgs | args | The EntryEventArgs instance containing the event data. |
RaiseEntryUpdatingEvent(CatalogEntryDto, EntryEventArgs)
Raises the entry updating event.
Declaration
public void RaiseEntryUpdatingEvent(CatalogEntryDto sender, EntryEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogEntryDto | sender | The sender. |
EntryEventArgs | args | The EntryEventArgs instance containing the event data. |
RaiseNodeDeletedEvent(CatalogNodeDto, DeletedNodeEventArgs)
Raises the node deleted event.
Declaration
public void RaiseNodeDeletedEvent(CatalogNodeDto sender, DeletedNodeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto | sender | The sender. |
DeletedNodeEventArgs | args | The DeletedNodeEventArgs instance containing the event data. |
RaiseNodeUpdatedEvent(CatalogNodeDto, NodeEventArgs)
Raises the node updated event.
Declaration
public void RaiseNodeUpdatedEvent(CatalogNodeDto sender, NodeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto | sender | The sender. |
NodeEventArgs | args | The NodeEventArgs instance containing the event data. |
RaiseNodeUpdatingEvent(CatalogNodeDto, NodeEventArgs)
Raises the node updating event.
Declaration
public void RaiseNodeUpdatingEvent(CatalogNodeDto sender, NodeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogNodeDto | sender | The sender. |
NodeEventArgs | args | The NodeEventArgs instance containing the event data. |
RaiseRelationDeletedEvent(CatalogRelationDto, DeletedRelationEventArgs)
Raises the relation deleted event.
Declaration
public void RaiseRelationDeletedEvent(CatalogRelationDto sender, DeletedRelationEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogRelationDto | sender | The sender. |
DeletedRelationEventArgs | args | The DeletedRelationEventArgs instance containing the event data. |
RaiseRelationUpdatedEvent(CatalogRelationDto, RelationEventArgs)
Raises the relation updated event.
Declaration
public void RaiseRelationUpdatedEvent(CatalogRelationDto sender, RelationEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogRelationDto | sender | The sender. |
RelationEventArgs | args | The RelationEventArgs instance containing the event data. |
RaiseRelationUpdatingEvent(CatalogRelationDto, RelationEventArgs)
Raises the relation updating event.
Declaration
public void RaiseRelationUpdatingEvent(CatalogRelationDto sender, RelationEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CatalogRelationDto | sender | The sender. |
RelationEventArgs | args | The RelationEventArgs instance containing the event data. |
Events
AssociationDeleted
Occurs when an association is deleted.
Declaration
public event EventContext.DeletedAssociationEventHandler AssociationDeleted
Event Type
Type | Description |
---|---|
EventContext.DeletedAssociationEventHandler |
AssociationUpdated
Occurs when an association is updated.
Declaration
public event EventContext.AssociationEventHandler AssociationUpdated
Event Type
Type | Description |
---|---|
EventContext.AssociationEventHandler |
AssociationUpdating
Occurs when an association is about to be updated.
Declaration
public event EventContext.AssociationEventHandler AssociationUpdating
Event Type
Type | Description |
---|---|
EventContext.AssociationEventHandler |
CatalogDeleted
Occurs when a catalog is deleted.
Declaration
public event EventContext.DeletedCatalogEventHandler CatalogDeleted
Event Type
Type | Description |
---|---|
EventContext.DeletedCatalogEventHandler |
CatalogLanguageUpdated
Occurs when a catalog is updated with a new language configuration (available or default languages).
Declaration
public event EventContext.CatalogLanguageEventHandler CatalogLanguageUpdated
Event Type
Type | Description |
---|---|
EventContext.CatalogLanguageEventHandler |
CatalogUpdated
Occurs when a catalog is updated.
Declaration
public event EventContext.CatalogEventHandler CatalogUpdated
Event Type
Type | Description |
---|---|
EventContext.CatalogEventHandler |
CatalogUpdating
Occurs when a catalog is about to be updated.
Declaration
public event EventContext.CatalogEventHandler CatalogUpdating
Event Type
Type | Description |
---|---|
EventContext.CatalogEventHandler |
EntryDeleted
Occurs when a catalog entry is deleted.
Declaration
public event EventContext.DeletedEntryEventHandler EntryDeleted
Event Type
Type | Description |
---|---|
EventContext.DeletedEntryEventHandler |
EntryUpdated
Occurs when a catalog entry is updated.
Declaration
public event EventContext.EntryEventHandler EntryUpdated
Event Type
Type | Description |
---|---|
EventContext.EntryEventHandler |
EntryUpdating
Occurs when a catalog entry is about to be updated.
Declaration
public event EventContext.EntryEventHandler EntryUpdating
Event Type
Type | Description |
---|---|
EventContext.EntryEventHandler |
NodeDeleted
Occurs when a catalog node is deleted;
Declaration
public event EventContext.DeletedNodeEventHandler NodeDeleted
Event Type
Type | Description |
---|---|
EventContext.DeletedNodeEventHandler |
NodeUpdated
Occurs when a catalog node is updated.
Declaration
public event EventContext.NodeEventHandler NodeUpdated
Event Type
Type | Description |
---|---|
EventContext.NodeEventHandler |
NodeUpdating
Occurs when a catalog node is about to be updated.
Declaration
public event EventContext.NodeEventHandler NodeUpdating
Event Type
Type | Description |
---|---|
EventContext.NodeEventHandler |
RelationDeleted
Occurs when a relation is deleted.
Declaration
public event EventContext.DeletedRelationEventHandler RelationDeleted
Event Type
Type | Description |
---|---|
EventContext.DeletedRelationEventHandler |
RelationUpdated
Occurs when a relation is updated.
Declaration
public event EventContext.RelationEventHandler RelationUpdated
Event Type
Type | Description |
---|---|
EventContext.RelationEventHandler |
RelationUpdating
Occurs when a relation is about to be updated.
Declaration
public event EventContext.RelationEventHandler RelationUpdating
Event Type
Type | Description |
---|---|
EventContext.RelationEventHandler |