Exemplo n.º 1
0
        public static VSTSMonitor GetMonitor(TeamFoundationServer server, string stateFilePath, string projectPath, int port)
        {
            VSTSMonitor Monitor = null;

            try
            {
                lock (SyncLock)
                {
                    if (Monitors.ContainsKey(projectPath))
                    {
                        return(Monitors[projectPath]);
                    }

                    Monitor = new VSTSMonitor(server, stateFilePath, projectPath, port);
                    Monitors.Add(projectPath, Monitor);
                }
            }
            catch (System.Exception ex)
            {
                ThoughtWorks.CruiseControl.Core.Util.Log.Error(ex);
                throw;
            }

            return(Monitor);
        }
Exemplo n.º 2
0
        public static VSTSMonitor GetMonitor(TeamFoundationServer server, string stateFilePath, string projectPath, int port)
        {
            VSTSMonitor Monitor = null;

            try
            {

                lock (SyncLock)
                {
                    if (Monitors.ContainsKey(projectPath))
                        return Monitors[projectPath];

                    Monitor = new VSTSMonitor(server, stateFilePath, projectPath, port);
                    Monitors.Add(projectPath, Monitor);
                }

            }
            catch (System.Exception ex)
            {
                ThoughtWorks.CruiseControl.Core.Util.Log.Error(ex);
                throw;
            }

            return Monitor;
        }
Exemplo n.º 3
0
        public static VSTSMonitor GetMonitor(TeamFoundationServer server, string stateFilePath, string projectPath, int port)
        {
            if (Monitors.ContainsKey(projectPath))
            {
                return(Monitors[projectPath]);
            }

            VSTSMonitor Monitor = new VSTSMonitor(server, stateFilePath, projectPath, port);

            Monitors.Add(projectPath, Monitor);
            return(Monitor);
        }