The datastore features are all contained within the Autonomy.Connector.Datastore
using Autonomy.Connector.Datastore;
You can access a datastore for the synchronize action like this:
public override void Synchronize(ISynchronizeTask task) { using (DatastoreFile datastore = new DatastoreFile( task.DatastoreFileName, task.Log)) { // Use datastore ... } }
This opens or creates the datastore in the file named in task.DatastoreFileName
. If the datastore already exists the existing datastore is opened (the datastore is not created again). The DatastoreFile
object provides access to the datastore. using
block.
Micro Focus recommends that you use the file named in ISynchronizeTask.DatastoreFileName
to store all state information for the task. You can use the
object to store a datastore in that file, or use a format of your choosing.DatastoreFile
The advantages of storing all state information in the file specified by ISynchronizeTask.DatastoreFileName
include:
backup
and restore
actions are used.
|