Exemplo n.º 1
0
        public void RemoteCreate()
        {
            var t = new WinServiceCreateTask("SrvTestWeb01", "FHLBank.Cue");
            t.ServiceLocation = "E:\\FHLBWinSvc\\Cue\\FHLBank.Cue.Host.exe";
            t.StartMode = ServiceStartMode.Automatic;

            DeploymentResult o = t.VerifyCanRun();
            t.Execute();
        }
Exemplo n.º 2
0
		public override void Context()
		{
			_task = new WinServiceCreateTask("localhost", "test");
		}