11-30-2010 03:09 AM
I'm feel a bit ignorant asking this question but for the life of me I can't seem to work it out! The SyncNow() takes a ISycTask by ref but I have absolutely no idea where to get this Object and what implements this interface?? Could someone point me in the right direction?
05-14-2012 04:58 PM
Thank you for your input on the SynchronizationManager. However, the SyncNow expects a value passed to it of type Utils.iSYncTask. What is this? If the SyncNow is called with the iSYncTask not set to anything, nothing happens. So what parameters does one need to set on the iSyncTask to make the SyncNow execute?
I am looking to sync everything on the database.
Dim iSyncTaskWhatnot As Act.Framework.Synchronization.Utils.ISyncTask
05-14-2012 07:10 PM
05-14-2012 09:16 PM
Thanx. However, the code is not a plugin. It access the ACT! Framework and the framework is fully available.
I'd like to know what .... parameter to pass to the SyncNow. Is there any docs on this?
05-17-2012 02:42 PM
I don't know if what you want to do is possible, however Scheduler calls SyncNow without an Application reference.
So maybe this example code from Scheduler will be helpful. These are the relevant bits.
ActFramework f = new ActFramework();
ConnectionType connectionType = (ConnectionType)f.SynchronizationManager.ConnectionTypePref;
ISyncTask syncTask = new SyncStartUp(SyncType.Remoting, connectionType);
Connection type is an enum in Act.Framework.Synchronization.Utils and resolves to Network or Web (or None)
07-04-2012 04:17 PM
I just tried it for fun and it is synching. That's why it's pausing for so long :-).