public void SyncJob(object sender, DoWorkEventArgs e) { while (!_shouldStop) { try { adaptorSql = new sqlAdaptor(_sqlConnectionString); if (adaptorSql.State == ConnectionState.Open) { //if (false) // move to config sync type now actual only sync from 1C //{ // importFromDBF(); //}else{ lock (ImportService.lock1C) { importFrom1C(); } //} } } finally { Dispose(); } sleepSyncJobSchedule(); } }
public void Dispose() { try { if (adaptorSql != null) { adaptorSql.Dispose(); } if (adaptor1C != null) { adaptor1C.Dispose(); } if (dbfAdaptor != null) { dbfAdaptor.Dispose(); } dbfAdaptor = null; adaptor1C = null; adaptorSql = null; }catch (Exception ex) { Logger.logger.Error(ex); } }
public ParticularImportDataFrom1Cv77(comClient1Cv77Adatpor com1Cv77Adaptor, sqlAdaptor sqlAdaptor) : base(com1Cv77Adaptor, sqlAdaptor) { }
public ImportSchemaFrom1Cv77(comClient1Cv77Adatpor com1Cv77Adaptor, sqlAdaptor sqlAdaptor) : base(com1Cv77Adaptor, sqlAdaptor) { }
protected BaseImportFrom1Cv77(comClient1Cv77Adatpor com1Cv77Adaptor, sqlAdaptor sqlAdaptor) { this._comClient1Cv77Adatpor = com1Cv77Adaptor; this._sqlAdaptor = sqlAdaptor; }
public ImportDataFromDBF(dbf1Cv77Adaptor dbf1Cv77Adaptor, sqlAdaptor sqlAdaptor) { this._sqlAdaptor = sqlAdaptor; this._dbf1Cv77Adaptor = dbf1Cv77Adaptor; }