コード例 #1
0
        private async Task <RevisionHistoryAttachments> GetWorkItemUpdates(IMigrationContext migrationContext, WorkItem sourceWorkItem)
        {
            IList <RevisionHistoryAttachments> revisionHistoryAttachments = new List <RevisionHistoryAttachments>();
            var wiUpdates = await WorkItemTrackingHelpers.GetWorkItemUpdatesAsync(migrationContext.SourceClient.WorkItemTrackingHttpClient, sourceWorkItem.Id.Value);

            return(new RevisionHistoryAttachments {
                Workitem = sourceWorkItem, Updates = wiUpdates
            });
        }
コード例 #2
0
 private async Task <IList <WorkItemUpdate> > GetWorkItemUpdates(IMigrationContext migrationContext, WorkItem sourceWorkItem, int skip = 0)
 {
     return(await WorkItemTrackingHelpers.GetWorkItemUpdatesAsync(migrationContext.SourceClient.WorkItemTrackingHttpClient, sourceWorkItem.Id.Value, skip));
 }