//-------------------------------------------------------------------- public CResultAErreur TraiteNextDestination() { CResultAErreur result = CResultAErreur.True; CDonneesSynchronisationBaseDistante donneeSyncRetenue = null; lock (this) { DateTime?dtMin = null; foreach (KeyValuePair <string, CDonneesSynchronisationBaseDistante> kv in m_dicDonneesSynchro) { if (kv.Value.Operations.Count() > 0) { if (dtMin == null || (kv.Value.LastDateSynchro != null && kv.Value.LastDateSynchro < dtMin)) { donneeSyncRetenue = kv.Value; dtMin = kv.Value.LastDateSynchro; } } } } if (donneeSyncRetenue != null) { result = donneeSyncRetenue.DoOperations(m_nIdSession); } return(result); }
//-------------------------------------------------------------------- public CResultAErreur TraiteAgent(string strCleAgent) { CResultAErreur result = CResultAErreur.True; CDonneesSynchronisationBaseDistante donnee = null; if (m_dicDonneesSynchro.TryGetValue(strCleAgent, out donnee)) { return(donnee.DoOperations(m_nIdSession)); } return(result); }