Ejemplo n.º 1
0
        private ICmObject RealKeyObject()
        {
            var temp = m_item.GetObject(m_repo);

            m_item = temp;             // locking not needed, all threads will update to same thing
            return(temp);
        }
Ejemplo n.º 2
0
        public LazyManyOnePathSortItem(string persistInfo, ICmObjectRepository repo)
        {
            m_repo = repo;
            var chunks = persistInfo.Split(';');

            m_item = ParseGuidRep(repo, chunks[0]);
            if (chunks.Length > 1)
            {
                var pathLen = chunks.Length / 2;
                m_pathObjects = new ICmObjectOrId[pathLen];
                m_pathFlids   = new int[pathLen];
                for (int i = 0; i < pathLen; i++)
                {
                    m_pathFlids[i]   = int.Parse(chunks[i * 2 + 1]);
                    m_pathObjects[i] = ParseGuidRep(repo, chunks[i * 2 + 2]);
                }
            }
        }
Ejemplo n.º 3
0
 private string PersistGuid(ICmObjectOrId item)
 {
     return(Convert.ToBase64String(item.Id.Guid.ToByteArray()));
 }
Ejemplo n.º 4
0
		private ICmObject RealKeyObject()
		{
			var temp = m_item.GetObject(m_repo);
			m_item = temp; // locking not needed, all threads will update to same thing
			return temp;
		}
Ejemplo n.º 5
0
		private string PersistGuid(ICmObjectOrId item)
		{
			return Convert.ToBase64String(item.Id.Guid.ToByteArray());
		}
Ejemplo n.º 6
0
		public LazyManyOnePathSortItem(string persistInfo, ICmObjectRepository repo)
		{
			m_repo = repo;
			var chunks = persistInfo.Split(';');
			m_item = ParseGuidRep(repo, chunks[0]);
			if (chunks.Length > 1)
			{
				var pathLen = chunks.Length/2;
				m_pathObjects = new ICmObjectOrId[pathLen];
				m_pathFlids = new int[pathLen];
				for (int i = 0; i < pathLen; i++)
				{
					m_pathFlids[i] = int.Parse(chunks[i*2 + 1]);
					m_pathObjects[i] = ParseGuidRep(repo, chunks[i * 2 + 2]);
				}
			}
		}