Table of Contents

Class Ecommerce.Product.AfterSaveArgs

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

Provides information about product after saving.

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

Examples

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

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(AfterSave)]
public class EcomProductAfterSaveObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not AfterSaveArgs afterSaveArgs)        
            return;

        // Add code here
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Product.AfterSaveArgs

Constructors

AfterSaveArgs(Product)

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

public AfterSaveArgs(Product product)

Parameters

product Product

The product.

Properties

Product

Gets the product.

public Product Product { get; }

Property Value

Product

The product.

ProductBeforeChanges

Gets previous state of the product.

public Product ProductBeforeChanges { get; set; }

Property Value

Product

The product.

See Also

To top