Class Integration
- Assembly
- Dynamicweb.DataIntegration.dll
Provides notifications names as well as notification argument types related to data integration activities. This class cannot be inherited.
public sealed class Integration
- Inheritance
-
Integration
- Inherited Members
Fields
JobFinished
Occurs when the data integration job is being finished.
public const string JobFinished = "DWN_INTEGRATION_JOBFINISHED"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
using IntegrationNotifications = Dynamicweb.DataIntegration.Integration.Notifications.Integration;
namespace Dynamicweb.DataIntegration.Examples.Notifications
{
[Subscribe(IntegrationNotifications.JobFinished)]
public class JobFinishedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
IntegrationNotifications.JobFinishedIntegrationArgs integrationArgs = args as IntegrationNotifications.JobFinishedIntegrationArgs;
//Add code here
//Sample code:
//If the job finished successfully
if (!integrationArgs.JobFailed)
{
//Clear language cache if the import was to Languaguages table
if (integrationArgs.DestinationTables.Contains("EcomLanguages"))
{
Ecommerce.Services.Languages.ClearCache();
}
}
}
}
}
Remarks
The passed NotificationArgs is Integration.JobFinishedIntegrationArgs