Click or drag to resize

EcommerceCustomerCenterAfterProductClearCacheArgs Class

Proovides information about product before rendering.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCustomerCenterAfterProductClearCacheArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class AfterProductClearCacheArgs : NotificationArgs

The EcommerceCustomerCenterAfterProductClearCacheArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCustomerCenterAfterProductClearCacheArgs
Initializes a new instance of the EcommerceCustomerCenterAfterProductClearCacheArgs class
Top
Remarks
The passed NotificationArgs is EcommerceCustomerCenterAfterProductClearCacheArgs
Examples
C#
using Dynamicweb;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeRender)]
    public class EcomProductBeforeRenderObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
        {
            if (args == null || !(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeRenderArgs))
                return;

            Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeRenderArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeRenderArgs)args;

            //Add code here
        }
    }
}
See Also