示例#1
0
        private int?ExtractFileLinkInfoExtId(WorkItem workItem, string uri)
        {
            ReadOnlyCollection <ExternalLink> myLinks = ExtractMyLinks(workItem);

            foreach (ExternalLink link in myLinks)
            {
                if (TFStringComparer.ArtiFactUrl.Equals(link.LinkedArtifactUri, uri))
                {
                    return(WorkItemExternalLinkType.ReflectFileLinkInfoExtId(link));
                }
            }

            return(null);
        }
示例#2
0
        private int?ExtractFileLinkInfoExtId(WorkItem workItem, string uri)
        {
            ReadOnlyCollection <Hyperlink> myLinks = ExtractMyLinks(workItem);

            foreach (Hyperlink link in myLinks)
            {
                if (TFStringComparer.ArtiFactUrl.Equals(TfsHyperlinkHandler.UriFromId(link.Location), uri))
                {
                    return(WorkItemExternalLinkType.ReflectFileLinkInfoExtId(link));
                }
            }

            return(null);
        }