Contents Index Debugging .NET synchronization logic Class instances

MobiLink Synchronization User's Guide
  Writing Synchronization Scripts in .NET

Writing .NET synchronization logic


Writing .NET synchronization logic is no different in complexity from writing any other .NET code. What is required from you is knowledge of MobiLink events, some knowledge of .NET, and knowledge of the MobiLink .NET API. The following sections help you write useful synchronization logic.

In this release, the row data for the upload and download streams are not passed to the .NET synchronization logic. .NET synchronization logic can be used to maintain state information, and implement logic around the upload and download events. For example, a begin_synchronization script written in .NET could store the MobiLink user ID in a variable. Scripts called later in the synchronization process can access this variable. Also, you can access the rows after they are in the consolidated database and before or after they are committed.

Using .NET reduces dependence on the consolidated database. Behavior is affected less by upgrading the consolidated database to a new version or switching to a different database-management system.

For a complete description of the API, see MobiLink .NET API Reference.


Class instances
Transactions
SQL-.NET data types
Constructors
Methods
User-defined start classes

Contents Index Debugging .NET synchronization logic Class instances