Table of Contents

Class Ecommerce.Product.BeforeRenderArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Proovides information about product before rendering.

public class Ecommerce.Product.BeforeRenderArgs : NotificationArgs
Inheritance
Ecommerce.Product.BeforeRenderArgs
Inherited Members

Examples

using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Product;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeRender)]
public class EcomProductBeforeRenderObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeRenderArgs item)
            return;

        // Add code here
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Product.BeforeRenderArgs

Constructors

BeforeRenderArgs(Product)

Initializes a new instance of the Ecommerce.Product.BeforeRenderArgs class.

public BeforeRenderArgs(Product product)

Parameters

product Product

The product.

Properties

Product

Gets the product.

public Product Product { get; }

Property Value

Product

The product.

See Also

To top