Ejemplo n.º 1
0
 public void UploadTemplate(string name, string description, Stream zipFileStream, string metaData = null)
 {
     if (this._teamProjectCollection.State == TeamFoundationServiceHostStatus.Started)
     {
         this.UploadTemplate(name, description, StreamUtility.ConvertStreamToByteArray(zipFileStream));
     }
     else
     {
         throw new Exception("The current state of the team project collection is " + this._teamProjectCollection.State.ToString() + " and is not usable");
     }
 }