internal AttachingPoint(AttachingPoint attachingPoint) { _entityToken = attachingPoint._entityToken; EntityTokenType = attachingPoint.EntityTokenType; Id = attachingPoint.Id; Source = attachingPoint.Source; }
/// <exclude /> public static bool IsAttachingPoint(EntityToken entityToken, AttachingPoint attachingPoint) { return attachingPoint.Id == entityToken.Id && attachingPoint.Source == entityToken.Source && attachingPoint.EntityTokenType == entityToken.GetType(); }
internal AttachingPoint(AttachingPoint attachingPoint) { _entityToken = attachingPoint._entityToken; EntityTokenType = attachingPoint.EntityTokenType; Id = attachingPoint.Id; Source = attachingPoint.Source; }
/// <exclude /> public static AttachingPoint GetAttachingPoint(EntityToken entityToken) { if (entityToken is VirtualElementProviderEntityToken) { return(AttachingPoint.VirtualElementAttachingPoint(entityToken.Id, entityToken.Source)); } if (IsAttachingPoint(entityToken, AttachingPoint.ContentPerspectiveWebsiteItems)) { return(AttachingPoint.ContentPerspectiveWebsiteItems); } return(null); }
/// <exclude /> public static bool IsAttachingPoint(EntityToken entityToken, AttachingPoint attachingPoint) { return(attachingPoint.Id == entityToken.Id && attachingPoint.Source == entityToken.Source && attachingPoint.EntityTokenType == entityToken.GetType()); }