Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="publishedContent"></param>
        /// <returns></returns>
        internal static Guid GetGuidKey(this IPublishedContent publishedContent)
        {
            IPublishedContentWithKey withKey = null;

            if (publishedContent is PublishedContentWrapped)
            {
                withKey = ((PublishedContentWrapped)publishedContent).Unwrap() as IPublishedContentWithKey;
            }
            else
            {
                withKey = publishedContent as IPublishedContentWithKey;
            }

            if (withKey != null)
            {
                return(withKey.Key);
            }

            return(Guid.Empty);
        }
Beispiel #2
0
 // protected for models, internal for PublishedContentExtended static Extend method
 protected internal PublishedContentWithKeyExtended(IPublishedContentWithKey content)
     : base(content)
 {
 }
Beispiel #3
0
 protected PublishedContentWithKeyWrapped(IPublishedContentWithKey content)
     : base(content)
 {
 }
 protected PublishedContentWithKeyModel(IPublishedContentWithKey content)
     : base(content)
 {
 }