Class Ecommerce.Group
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Encapsulated group-related notification objects.
public sealed class Ecommerce.Group
- Inheritance
-
Ecommerce.Group
- Inherited Members
Examples
using Dynamicweb.Extensibility.Notifications;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(Ecommerce.Notifications.Ecommerce.Group.Deleted)]
public class EcomGroupDeletedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not Ecommerce.Notifications.Ecommerce.Group.DeletedArgs deletedArgs)
return;
// Add code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Group.GroupRelationModifiedEventArgs
Fields
AfterSave
Occurs after group was saved.
public const string AfterSave = "DWN_ECOM_GROUP_AFTER_SAVE"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(Ecommerce.Notifications.Ecommerce.Group.AfterSave)]
public class EcomGroupAfterSaveObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not Ecommerce.Notifications.Ecommerce.Group.AfterSaveArgs afterSaveArgs)
return;
// Add code here
}
}
BeforeDelete
Occurs when group is going to be saved.
public const string BeforeDelete = "DWN_ECOM_GROUP_BEFORE_DELETE"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(Ecommerce.Notifications.Ecommerce.Group.BeforeDelete)]
public class EcomGroupBeforeDeleteObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not Ecommerce.Notifications.Ecommerce.Group.BeforeDeleteArgs beforeDeleteArgs)
return;
// Add code here
}
}
BeforeSave
Occurs before group is going to be saved.
public const string BeforeSave = "DWN_ECOM_GROUP_BEFORE_SAVE"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(Ecommerce.Notifications.Ecommerce.Group.BeforeSave)]
public class EcomGroupBeforeSaveObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not Ecommerce.Notifications.Ecommerce.Group.BeforeSaveArgs beforeSaveArgs)
return;
// Add code here
}
}
Deleted
Occurs when the product group has been deleted.
public const string Deleted = "DWN_ECOM_GROUP_DELETED"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(Ecommerce.Notifications.Ecommerce.Group.Deleted)]
public class EcomGroupDeletedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not Ecommerce.Notifications.Ecommerce.Group.DeletedArgs deletedArgs)
return;
// Add code here
}
}
RelationAdded
Occurs when group relation has been created.
public const string RelationAdded = "DWN_ECOM_GROUP_RELATION_ADDED"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Group;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(RelationAdded)]
public class EcomGroupRelationAddedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not GroupRelationModifiedEventArgs notificationArgs)
return;
// Add code here
}
}
RelationDeleted
Occurs when group relation has been deleted.
public const string RelationDeleted = "DWN_ECOM_GROUP_RELATION_DELETED"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Group;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(RelationDeleted)]
public class EcomGroupRelationDeletedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not GroupRelationModifiedEventArgs item)
return;
// Add code here
}
}
RelationUpdated
Occurs when group relation has been updated.
public const string RelationUpdated = "DWN_ECOM_GROUP_RELATION_UPDATED"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Group;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(RelationUpdated)]
public class EcomGroupRelationUpdatedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not GroupRelationModifiedEventArgs item)
return;
// Add code here
}
}