/// <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); }
// protected for models, internal for PublishedContentExtended static Extend method protected internal PublishedContentWithKeyExtended(IPublishedContentWithKey content) : base(content) { }
protected PublishedContentWithKeyWrapped(IPublishedContentWithKey content) : base(content) { }
protected PublishedContentWithKeyModel(IPublishedContentWithKey content) : base(content) { }