예제 #1
0
        public virtual IPublishedContent GetById(UmbracoContext umbracoContext, bool preview, Guid nodeKey)
        {
            EnsureIdkMap(umbracoContext);
            var mapAttempt = _idkMap.GetIdForKey(nodeKey, UmbracoObjectTypes.Document);

            return(mapAttempt ? GetById(umbracoContext, preview, mapAttempt.Result) : null);
        }
예제 #2
0
 /// <inheritdoc />
 public Attempt <int> GetId(Guid key, UmbracoObjectTypes objectType)
 {
     return(_idkMap.GetIdForKey(key, objectType));
 }