Implement Other Actions

So far this document has focused on implementing the synchronize fetch action, but a connector can implement other fetch actions in addition to, or instead of, synchronize. We have already seen how to implement synchronize by overriding the synchronize method in ConnectorBase. ConnectorBase also has virtual methods for the other fetch actions. To implement any fetch action, override the appropriate function in ConnectorBase, and add the feature for the action to the implemented features returned by the connector features() function.

A full implementation of a File System Connector is available in the ExampleFileSystemConnector project in the CodeSamples solution. This connector supports the actions Synchronize (Full Synchronize or from a list of Identifiers), Collect, Delete, Insert and View.