コード例 #1
0
        private void LaunchServer()
        {
            using (ConsoleEventHandler handler = new ConsoleEventHandler())
            {
                handler.OnConsoleEvent += new EventHandler(HandleControlEvent);

                using (server = serverFactory.Create(args.UseRemoting, args.ConfigFile))
                {
                    if (args.Project == null)
                    {
                        server.Start();
                        server.WaitForExit();
                    }
                    else
                    {
                        // Force the build
                        ValidateResponse(
                            server.ForceBuild(
                                new ProjectRequest(SecurityOverride.SessionIdentifier, args.Project)));

                        // Tell the server to stop as soon as the build has finished and then wait for it
                        ValidateResponse(
                            server.Stop(
                                new ProjectRequest(SecurityOverride.SessionIdentifier, args.Project)));
                        server.WaitForExit(
                            new ProjectRequest(SecurityOverride.SessionIdentifier, args.Project));
                    }
                }
            }
        }
コード例 #2
0
ファイル: ConsoleRunner.cs プロジェクト: vardars/ci-factory
        private void LaunchServer()
        {
            using (ConsoleEventHandler handler = new ConsoleEventHandler())
            {
                handler.OnConsoleEvent += new EventHandler(HandleControlEvent);

                using (server = _serverFactory.Create(_parser.UseRemoting, _parser.ConfigFile))
                {
                    if (_parser.Project == null)
                    {
                        server.Start();
                        server.WaitForExit();
                    }
                    else
                    {
                        server.ForceBuild(_parser.Project, null);
                        server.WaitForExit(_parser.Project);
                    }
                }
            }
        }
コード例 #3
0
        private void LaunchServer()
        {
            using (ConsoleEventHandler handler = new ConsoleEventHandler())
            {
                handler.OnConsoleEvent += new EventHandler(HandleControlEvent);

                using (server = _serverFactory.Create(_parser.UseRemoting, _parser.ConfigFile))
                {
                    if (_parser.Project == null)
                    {
                        server.Start();
                        server.WaitForExit();
                    }
                    else
                    {
                        server.ForceBuild(_parser.Project, null);
                        server.WaitForExit(_parser.Project);
                    }
                }
            }
        }
コード例 #4
0
 public void Start()
 {
     _server.Start();
 }
コード例 #5
0
ファイル: CCService.cs プロジェクト: divyang4481/ci-factory
 protected override void OnContinue()
 {
     server.Start();
 }
コード例 #6
0
ファイル: CCService.cs プロジェクト: divyang4481/ci-factory
 private void CreateAndStartCruiseServer()
 {
     server = new CruiseServerFactory().Create(UseRemoting(), ConfigFilename);
     server.Start();
 }
コード例 #7
0
ファイル: CCService.cs プロジェクト: vardars/ci-factory
 private void CreateAndStartCruiseServer()
 {
     server = new CruiseServerFactory().Create(UseRemoting(), ConfigFilename);
     server.Start();
 }
コード例 #8
0
 public void Start()
 {
     cruiseServer.Start();
 }
コード例 #9
0
 /// <summary>
 /// Launches the CruiseControl.NET server and starts all project schedules it contains
 /// </summary>
 public virtual void Start()
 {
     server.Start();
 }
コード例 #10
0
        private void LaunchServer()
        {
            using (ConsoleEventHandler handler = new ConsoleEventHandler())
            {
                handler.OnConsoleEvent += new EventHandler(HandleControlEvent);

                using (server = serverFactory.Create(args.UseRemoting, args.ConfigFile))
                {
                    if (args.Project == null)
                    {
                        server.Start();
                        server.WaitForExit();
                    }
                    else
                    {
                        // Force the build
                        ValidateResponse(
                            server.ForceBuild(
                                new ProjectRequest(null, args.Project)));

                        // Tell the server to stop as soon as the build has finished and then wait for it
                        ValidateResponse(
                            server.Stop(
                                new ProjectRequest(null, args.Project)));
                        server.WaitForExit(
                            new ProjectRequest(null, args.Project));
                    }
                }
            }
        }
コード例 #11
0
        /// <summary>
        /// Starts the specified project.
        /// </summary>
        /// <param name="project">The project.</param>
        /// <remarks></remarks>
        public void Start(string project)
        {
            Response resp = cruiseServer.Start(GenerateProjectRequest(project));

            ValidateResponse(resp);
        }