Sample: Extending the Replication Synchronization Process


This document was published with and applies to ArcGIS 9.3.
A 10 version also exists.
Purpose
Developers may want to extend the core replica behavior during synchronization. The synchronization process can be extended by implementing a workspace extension that supports IWorkspaceReplicaSyncEvents . By implementing this interface in an extension, custom behavior can be executed before and after any replica synchronization process executed on a geodatabase.

This sample describes the process using the example of a developer wanting to copy new raster datasets from a raster catalog during the synchronization. In this example, when synchronization is executed, the extension identifies and copies the new raster datasets from the source geodatabase to the target geodatabase.
 
This sample is designed for connected synchronization where connections are made to local geodatabases.
 
This sample can be used as a reference for developers needing to extend synchronization for any reason.

Development licensing Deployment licensing
ArcEditor ArcEditor
ArcInfo ArcInfo
Engine Developer Kit Engine Runtime: Geodatabase Update

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll). If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. The Microsoft Word document, readme.doc, contains detailed instructions on how to prepare data that will work with this sample. Reading this document prior to using the sample is strongly recommended.

RasterSyncExtension/RasterSyncWorkspaceExtension.cs A workspace extension that extends the synchronization process.
RasterSyncExtensionReg/RegisterExtension.cs A console application that registers the extension with a geodatabase.
Download the C# files
RasterSyncExtension/RasterSyncWorkspaceExtension.vb A workspace extension that extends the synchronization process.
RasterSyncExtensionReg/RegisterExtension.vb A console application that registers the extension with a geodatabase.
Download the VB.NET files

Download the files for all languages