Clients receive device notifications when a data change is detected for any of the MBOs in the synchronization group to which they are subscribed.
ISynchronizationGroup sg = SUP101DB.GetSynchronizationGroup("TCNEnabled");
if (!sg.EnableSIS)
{
sg.EnableSIS = true;
sg.Interval = 2;
sg.Save();
SUP101DB.Synchronize("TCNEnabled");
}
public int OnSynchronize(GenericList<ISynchronizationGroup> groups, SynchronizationContext context)
{
int status = context.Status;
if (status == SynchronizationStatus.STARTING_ON_NOTIFICATION)
{
// There is changes on the synchronization group
if (busy)
{
return SynchronizationAction.CANCEL;
}
else
{
return SynchronizationAction.CONTINUE;
}
}
// return CONTINUE for all other status
return SynchronizationAction.CONTINUE;
}