Beispiel #1
0
 /// <summary>
 /// Sends an abort build request to the remote server.
 /// </summary>
 public void AbortBuild()
 {
     client.ProcessSingleAction(p =>
     {
         client.AbortBuild(p.Name);
     }, InnerProject);
 }
 public void AbortBuild()
 {
     Expect.Call(serverClient.SessionToken).PropertyBehavior();
     Expect.Call(() =>
     {
         serverClient.AbortBuild("yyy");
     });
     mocks.ReplayAll();
     manager.AbortBuild(null, "John Do");
     mocks.VerifyAll();
 }
Beispiel #3
0
 public void AbortBuild(string sessionToken, string userName)
 {
     try
     {
         manager.DisplayName  = userName;
         manager.SessionToken = sessionToken;
         manager.AbortBuild(projectName);
     }
     // Silently ignore exceptions that occur due to connection problems
     catch (System.Net.Sockets.SocketException)
     {
     }
     catch (System.Runtime.Remoting.RemotingException)
     {
     }
 }
Beispiel #4
0
 public void AbortBuild(string sessionToken, string userName)
 {
     client.DisplayName  = userName;
     client.SessionToken = sessionToken;
     client.AbortBuild(projectName);
 }
Beispiel #5
0
 public void AbortBuild(string name)
 {
     _client.AbortBuild(name);
 }