override public void Execute()
        {
            // Register for event notification
            eslClient.EventNotificationService.Register(EventNotificationConfigBuilder.NewEventNotificationConfig(URL)
                                                        .ForEvent(EVENT1)
                                                        .ForEvent(EVENT2)
                                                        .ForEvent(EVENT3)
                                                        .ForEvent(EVENT4)
                                                        .ForEvent(EVENT5)
                                                        .ForEvent(EVENT6)
                                                        .ForEvent(EVENT7)
                                                        .ForEvent(EVENT8)
                                                        .ForEvent(EVENT9)
                                                        .ForEvent(EVENT10)
                                                        .ForEvent(EVENT11)
                                                        .ForEvent(EVENT12)
                                                        .ForEvent(EVENT13)
                                                        .ForEvent(EVENT14)
                                                        .ForEvent(EVENT15)
                                                        .ForEvent(EVENT16)
                                                        .ForEvent(EVENT17)
                                                        .ForEvent(EVENT18));

            // Get the registered event notifications
            eventNotificationConfig = eslClient.EventNotificationService.GetEventNotificationConfig();
        }
Example #2
0
 override public void Execute()
 {
     eslClient.EventNotificationService.Register(EventNotificationConfigBuilder.NewEventNotificationConfig("http://my.url.com")
                                                 .ForEvent(NotificationEvent.PACKAGE_ACTIVATE)
                                                 .ForEvent(NotificationEvent.PACKAGE_COMPLETE)
                                                 .ForEvent(NotificationEvent.PACKAGE_OPT_OUT));
 }
Example #3
0
        private Silanis.ESL.SDK.EventNotificationConfig CreateTypicalSDKEventNotificationConfig()
        {
            EventNotificationConfig eventNotificationConfig = EventNotificationConfigBuilder.NewEventNotificationConfig("callback url")
                                                              .ForEvent(NotificationEvent.PACKAGE_DECLINE)
                                                              .ForEvent(NotificationEvent.PACKAGE_RESTORE)
                                                              .ForEvent(NotificationEvent.SIGNER_COMPLETE)
                                                              .build();

            return(eventNotificationConfig);
        }
Example #4
0
        override public void Execute()
        {
            // Register for event notification
            eslClient.EventNotificationService.Register(EventNotificationConfigBuilder.NewEventNotificationConfig(URL)
                                                        .ForEvent(EVENT1)
                                                        .ForEvent(EVENT2)
                                                        .ForEvent(EVENT3));

            // Get the registered event notifications
            eventNotificationConfig = eslClient.EventNotificationService.GetEventNotificationConfig();
        }
Example #5
0
        override public void Execute()
        {
            // Register for event notification
            events.Add(EVENT1);
            events.Add(EVENT2);
            events.Add(EVENT3);
            events.Add(EVENT4);
            events.Add(EVENT5);
            events.Add(EVENT6);
            events.Add(EVENT7);
            events.Add(EVENT8);
            events.Add(EVENT9);
            events.Add(EVENT10);
            events.Add(EVENT11);
            events.Add(EVENT12);
            events.Add(EVENT13);
            events.Add(EVENT14);
            events.Add(EVENT15);
            events.Add(EVENT16);
            events.Add(EVENT17);
            events.Add(EVENT18);
            events.Add(EVENT19);
            events.Add(EVENT20);

            eslClient.EventNotificationService.Register(EventNotificationConfigBuilder.NewEventNotificationConfig(URL)
                                                        .WithKey(KEY).SetEvents(events));

            // Get the registered event notifications
            config = eslClient.EventNotificationService.GetEventNotificationConfig();

            // Register event notifications for dynamics2013 connector
            connectorsEvents.Add(EVENT1);
            connectorsEvents.Add(EVENT3);
            connectorsEvents.Add(EVENT6);
            connectorsEvents.Add(EVENT9);
            connectorsEvents.Add(EVENT11);
            connectorsEvents.Add(EVENT12);
            connectorsEvents.Add(EVENT14);
            connectorsEvents.Add(EVENT17);
            connectorsEvents.Add(EVENT18);

            eslClient.EventNotificationService.Register(ORIGIN, EventNotificationConfigBuilder.NewEventNotificationConfig(CONNECTORS_URL)
                                                        .WithKey(CONNECTORS_KEY).SetEvents(connectorsEvents));

            // Get the registered event notifications for dynamics2013 connector
            connectorsConfig = eslClient.EventNotificationService.GetEventNotificationConfig(ORIGIN);
        }
 public void Register( EventNotificationConfigBuilder builder ) {
     Register( builder.build() );
 }
 /// <summary>
 /// <p>Registers to receive notifications sent by e-SL.<p>
 /// <p>The builder parameter of this method is convenient to use when you want to easily add more notification events.</p>
 /// </summary>
 /// <param name="origin">The origin of the package.</param>
 /// <param name="builder">The event notification config builder.</param>
 public void Register(string origin, EventNotificationConfigBuilder builder)
 {
     Register(origin, builder.build());
 }
 /// <summary>
 /// <p>Registers to receive notifications sent by e-SL.<p>
 /// <p>The builder parameter of this method is convenient to use when you want to easily add more notification events.</p>
 /// </summary>
 /// <param name="builder">The event notification config builder.</param>
 public void Register(EventNotificationConfigBuilder builder)
 {
     Register(builder.build());
 }