Table of Contents

Class Ecommerce.Order.BeforeSaveArgs

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

Provides information about the order which is going to be saved.

public class Ecommerce.Order.BeforeSaveArgs : NotificationArgs
Inheritance
Ecommerce.Order.BeforeSaveArgs
Inherited Members

Examples

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

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeSave)]
public class EcomOrderBeforeSaveObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeSaveArgs beforeSaveArgs)        
            return;        

        // Add code here
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Order.BeforeSaveArgs

Constructors

BeforeSaveArgs(Order)

Initializes a new instance of the Ecommerce.Order.BeforeSaveArgs class.

public BeforeSaveArgs(Order order)

Parameters

order Order

The order.

Properties

Order

Gets the order.

public Order Order { get; }

Property Value

Order

The order.

StopExecution

Gets or sets a value indicating whether [stop execution].

public bool StopExecution { get; set; }

Property Value

bool

true if [stop execution]; otherwise, false.

See Also

To top