Dynamicweb.Notifications Namespace > eCommerce.Order Class : GatewayStatusChanged Field |
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dynamicweb.Examples.CSharp.Notifications.eCommerce.Order { /// <summary> /// Order.GatewayStatusChanged /// </summary> [Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChanged)] public class EcomOrderGatewayStatusChangedObserver : Dynamicweb.Extensibility.NotificationSubscriber { public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args) { if (args == null || !(args is Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs)) return; Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs item = (Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs)args; //Todo: insert code here } } }
Imports Dynamicweb Namespace Dynamicweb.Examples.Vb.Notifications.eCommerce <Global.Dynamicweb.Extensibility.Subscribe(Global.Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChanged)> _ Public Class EcomOrderGatewayStatusChangedObserver Inherits Global.Dynamicweb.Extensibility.NotificationSubscriber Public Overrides Sub OnNotify(ByVal notification As String, ByVal args As Global.Dynamicweb.Extensibility.NotificationArgs) If args Is Nothing OrElse Not (TypeOf args Is Global.Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs) Then Return End If Dim item As Global.Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs = DirectCast(args, Global.Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs) 'TODO: Add code here End Sub End Class End Namespace
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2