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%"); }
//private int batchCount = 0; public void Initialize(DbSyncInfo syncInfo) { Configure(syncInfo); batchIdToFileMapper = new Dictionary <string, string>(); }
protected abstract void Configure(DbSyncInfo syncInfo);