コード例 #1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_Server != null)
         {
             _Server.Dispose();
             _Server = null;
         }
     }
 }
コード例 #2
0
ファイル: MyTFSConnection.cs プロジェクト: vcsb/tfs-merge
 public void Disconnect()
 {
     _projectCollection?.Dispose();
     _configurationServer?.Dispose();
     ClearBranchPaths();
     IsConnected = false;
 }
コード例 #3
0
ファイル: MyTfsServer.cs プロジェクト: pmiossec/SirenOfShame
 public void Dispose()
 {
     if (_tfsConfigurationServer != null)
     {
         _tfsConfigurationServer.Dispose();
     }
 }
コード例 #4
0
 /// <summary>
 /// Dispose of all resources held.
 /// </summary>
 /// <param name="disposeManaged">If disposeManaged equals true, clean up all resources.</param>
 protected virtual void Dispose(bool disposeManaged)
 {
     if (disposeManaged)
     {
         if (configurationServer != null)
         {
             configurationServer.Dispose();
             configurationServer = null;
         }
     }
 }
コード例 #5
0
        private static bool CheckTfsServerPath(string path, NetworkCredential credential)
        {
            TfsConfigurationServer tfsServer = null;

            try
            {
                tfsServer = new TfsConfigurationServer(new Uri(path), credential);
                tfsServer.Connect(ConnectOptions.None);
                return(true);
            }
            catch
            {
                if (tfsServer != null)
                {
                    tfsServer.Dispose();
                }
            }

            return(false);
        }
コード例 #6
0
        private static bool CheckTfsServerPath(string path, NetworkCredential credential)
        {
            TfsConfigurationServer tfsServer = null;
            try
            {
                tfsServer = new TfsConfigurationServer(new Uri(path), credential);
                tfsServer.Connect(ConnectOptions.None);
                return true;
            }
            catch
            {
                if (tfsServer != null)
                    tfsServer.Dispose();
            }

            return false;
        }
コード例 #7
0
ファイル: MyTfsServer.cs プロジェクト: sscctech/SirenOfShame
 public void Dispose()
 {
     _tfsConfigurationServer.Dispose();
 }