예제 #1
0
 public int CheckIn(IEnumerable <ITfsWorkItem> workItemAssociations, string changesetComment)
 {
     return(TfsWorkspace.CheckIn(
                TfsWorkspace.GetPendingChangesEnumerable().ToArray(),
                changesetComment, null,
                workItemAssociations.Select(
                    wia => new WorkItemCheckinInfo(Repository.Instance.TfsBridgeProvider.GetWorkItemById(wia.Id).WorkItem, WorkItemCheckinAction.Associate)).ToArray(),
                null));
 }
예제 #2
0
        void RefreshPendingChangesWorker(CancellationToken cts)
        {
            var pendingChanges    = new List <ITfsPendingChange>();
            var pendingChangesTfs = TfsWorkspace.GetPendingChangesEnumerable();

            foreach (var pendingChange in pendingChangesTfs)
            {
                cts.ThrowIfCancellationRequested();
                pendingChanges.Add(new TfsPendingChange(pendingChange));
            }

            PendingChanges = pendingChanges;
            Repository.Instance.BackgroundTaskManager.Post(
                () =>
            {
                RaisePendingChangesChanged();
                return(true);
            });
        }