SenseNet.ContentRepository.Storage.DataBackingStore.GetNodeHead C# (CSharp) Method

GetNodeHead() static private method

static private GetNodeHead ( int nodeId ) : NodeHead
nodeId int
return NodeHead
        internal static NodeHead GetNodeHead(int nodeId)
        {
            string idKey = CreateNodeHeadIdCacheKey(nodeId);
            NodeHead item = (NodeHead)DistributedApplication.Cache.Get(idKey);

            if (item == null)
            {
                item = DataProvider.Current.LoadNodeHead(nodeId);
                if (item != null)
                    CacheNodeHead(item, idKey, CreateNodeHeadPathCacheKey(item.Path));
            }

            return item;
        }
        internal static NodeHead GetNodeHead(string path)

Same methods

DataBackingStore::GetNodeHead ( string path ) : NodeHead

Usage Example

Example #1
0
 public static NodeHead Get(string path)
 {
     return(DataBackingStore.GetNodeHead(path));
 }
All Usage Examples Of SenseNet.ContentRepository.Storage.DataBackingStore::GetNodeHead