Exemplo n.º 1
0
        public DbSyncProviderProxy(string syncAction, string scopeName, string connection, string[] staticTables, string[] dynamicTables, string syncClass, string serviceUri)
        {
            ServiceUri = serviceUri;
            Proxy      = CreateProxy();
            try {
                DbSyncInfo syncInfo = new DbSyncInfo(syncAction, scopeName, connection, staticTables, dynamicTables);
                syncInfo.ServerSyncClass = syncClass;
                Proxy.Initialize(syncInfo);
            }
            catch (Exception ex) {
                throw ex;
            }

            BatchingDirectory = Environment.ExpandEnvironmentVariables("%TEMP%");
        }
Exemplo n.º 2
0
        //private int batchCount = 0;

        public void Initialize(DbSyncInfo syncInfo)
        {
            Configure(syncInfo);
            batchIdToFileMapper = new Dictionary <string, string>();
        }
Exemplo n.º 3
0
 protected abstract void Configure(DbSyncInfo syncInfo);