/// <summary>Gets the unique instance for the cache for the identification</summary> public static NeoDatis.Odb.Core.Transaction.ICrossSessionCache GetInstance(string baseIdentification) { ICrossSessionCache cache = null; instances.TryGetValue(baseIdentification, out cache); if (cache == null) { lock (instances) { cache = new CrossSessionCache(); instances[baseIdentification] = cache; } } return cache; }
/// <summary>Gets the unique instance for the cache for the identification</summary> public static NeoDatis.Odb.Core.Transaction.ICrossSessionCache GetInstance(string baseIdentification) { ICrossSessionCache cache = null; instances.TryGetValue(baseIdentification, out cache); if (cache == null) { lock (instances) { cache = new CrossSessionCache(); instances[baseIdentification] = cache; } } return(cache); }