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 Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSave)]
public class EcomOrderBeforeSaveObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSaveArgs beforeSaveArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSaveArgs;
//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.
- See Also
Properties
Order
Gets the order.
public Order Order { get; }
Property Value
- Order
- The order.
- See Also
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