Пример #1
0
        public TemporaryFile DownloadFile()
        {
            var temp = new TemporaryFile();

            try
            {
                _bridge.Unwrap <Item>(_item).DownloadFile(temp);
                return(temp);
            }
            catch (Exception)
            {
                Trace.WriteLine(string.Format("Something went wrong downloading \"{0}\" in changeset {1}", _item.ServerItem, _item.ChangesetId));
                temp.Dispose();
                throw;
            }
        }
Пример #2
0
 public void Shelve(IShelveset shelveset, IPendingChange[] changes, TfsShelvingOptions options)
 {
     _workspace.Shelve(_bridge.Unwrap<Shelveset>(shelveset), _bridge.Unwrap<PendingChange>(changes), _bridge.Convert<ShelvingOptions>(options));
 }