コード例 #1
0
		/// <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;
		}
コード例 #2
0
        /// <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);
        }