Contents Index Running .NET synchronization logic Printing information from .NET

MobiLink Synchronization User's Guide
  Writing Synchronization Scripts in .NET
    Running .NET synchronization logic

Loading assemblies


A .NET assembly is a package of types, metadata, and executable code. In .NET applications, all code must be in an assembly. Assembly files have the extension .dll or .exe.

There are two types of assembly:

Before MobiLink can load a class and call a method of that class, it must locate the assembly that contains the class. MobiLink only needs to locate the assembly that it calls directly. The assembly can then call any other assemblies it needs.

For example, MobiLink calls MyAssembly, and MyAssembly calls UtilityAssembly and NetworkingUtilsAssembly. In this situation, MobiLink only needs to be configured to find MyAssembly.

MobiLink provides two ways to load assemblies:

Sample domain configuration file 

A sample domain configuration file is installed with MobiLink. You can write your own file from scratch, or edit the sample to suit your needs. The sample file is located in the SQL Anywhere Studio path, in

MobiLink\setup\dnet\mlDomConfig.xml

Following is the content of the sample domain configuration file mlDomConfig.xml:

<?xml version="1.0" encoding="utf-8"?>
<config xmlns="iAnywhere.MobiLink.mlDomConfig" xsi:schemaLocation='iAnywhere.MobiLink.mlDomConfig mlDomConfig.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' >
   <domain>
      <name>SampleDomain1</name>
      <appBase>C:\scriptsDir</appBase>
      <configFile></configFile>
      <assembly name="Assembly1" />
      <assembly name="Assembly2" />
   </domain>
   <domain>
      <name>SampleDomain2</name>
      <appBase>\Dom2assembly</appBase>
      <configFile>\Dom2assembly\AssemblyRedirects.config</configFile>
      <assembly name="Assembly3" />
      <assembly name="Assembly4" />
   </domain>
</config>

Following is an explanation of the contents of mlDomConfig.xml:

For more information about the dbmlsrv9 option -sl dnet, see -sl dnet option.


Contents Index Running .NET synchronization logic Printing information from .NET