//------------------------------------------------------------------- public bool IsLoaded(ISatisfactionBesoin satisfaction) { CCacheRelationsParContexte cache = null; if (!m_dicContexteToCache.TryGetValue(satisfaction.ContexteDonnee.IdContexteDonnee, out cache)) { return(false); } return(cache.IsLoaded(satisfaction)); }
//------------------------------------------------------------------- public CListeObjetsDonnees GetRelations(ISatisfactionBesoin satisfaction) { CCacheRelationsParContexte cache = null; if (!m_dicContexteToCache.TryGetValue(satisfaction.ContexteDonnee.IdContexteDonnee, out cache)) { NettoieCache(); cache = new CCacheRelationsParContexte(); m_dicContexteToCache[satisfaction.ContexteDonnee.IdContexteDonnee] = cache; } return(cache.GetRelations(satisfaction)); }
//------------------------------------------------------------------- public void SetRelations(ISatisfactionBesoin satisfaction, CListeObjetsDonnees lstRelations) { CCacheRelationsParContexte cache = null; if (!m_dicContexteToCache.TryGetValue(satisfaction.ContexteDonnee.IdContexteDonnee, out cache)) { NettoieCache(); cache = new CCacheRelationsParContexte(); m_dicContexteToCache[satisfaction.ContexteDonnee.IdContexteDonnee] = cache; } cache.SetRelations(satisfaction, lstRelations); }