コード例 #1
0
        private static LinkCollectionImpl ParseLinks(JsonWorkItem workItem)
        {
            var value = (JArray)((JObject)workItem.JsonValue).Properties().First(p => p.Name == "relations").Value;
            LinkCollectionImpl results = LinkCollectionImpl.FromToken(value);

            return(results);
        }
コード例 #2
0
        internal static LinkCollectionImpl GetInstance([CallerMemberName] string callerName = "")
        {
            LinkCollectionImpl instance = default(LinkCollectionImpl);

            InstanceFactory(ref instance, callerName);
            return(instance);
        }
コード例 #3
0
        private static LinkCollectionImpl DeferredLoadLinks(JsonWorkItem workItem)
        {
            LinkCollectionImpl result = APIFactory().GetLinksForWorkItemRevision(workItem, LinkCollectionImpl.FromToken).Result;

            return(result);
        }
コード例 #4
0
 static partial void InstanceFactory(ref LinkCollectionImpl instance, [CallerMemberName] string callerName = "");