public void Initialize(InitializationEngine context) { contentEv = context.Locate.ContentEvents(); contentEv.PublishedContent += ContentEv_PublishedContent; catalogEv = ServiceLocator.Current.GetInstance <ICatalogEvents>(); catalogEv.EntryUpdated += CatalogEv_EntryUpdated; evListner = Event.Get(CatalogEventBroadcaster.CommerceProductUpdated); evListner.Raised += EvListner_Raised; }
public void Uninitialize( CatalogKeyEventBroadcaster catalogKeyEventBroadcaster, ICatalogEvents catalogEvents, IContentEvents contentEvents) { catalogKeyEventBroadcaster.PriceUpdated -= OnPriceUpdated; catalogEvents.AssociationUpdating -= OnAssociationUpdated; contentEvents.CreatedContent -= OnCreatedContent; contentEvents.DeletedContent -= OnDeletedContent; contentEvents.DeletingContent -= OnDeletingContent; contentEvents.MovedContent -= OnMovedContent; contentEvents.PublishedContent -= OnPublishedContent; }