The following APIs support registering or unregistering for push notification in the generated database class:
MyDatabase.RegisterCallbackHandler(new PushListener()); MyDatabase.GetSynchronizationProfile().SISAppname = "TestSIS" MyDatabase.GetSynchronizationProfile().SISIntervalMS = 10000 MyDatabase.GetSynchronizationProfile().SISNotificationFilePath = ServerSyncRegistry.NewInstance().FilePath; MyDatabase.StartBackgroundSynchronization(); MyDatabase.StopBackgroundSynchronization();
The client should set the SIS push configuration using SynchronizationGroup.
Sybase.Persistence.ISynchronizationGroup GetSynchronizationGroup(string syncGroup)
ISynchronizationGroup sg = End2EndDB.GetSynchronizationGroup("ofs");
sg.EnableSIS = true;
sg.Interval = 0;
sg.Save();
Sybase.Persistence.SynchronizationManager.Instance.RegisterServerSyncConfiguration();