Esempio n. 1
0
		static void Main(string[] args)
		{
			Log.AddEntry("Welcome to RegTesting Service V2!");

			//Init AutoMapper
			//AutoMapperServerInit.CreateMappings();

			//Init Structuremap
			IoC.Initialize();

			int port = RegtestingServerConfiguration.Port;

			Log.AddEntry("Loading Services on port " + port + ":");
			IHostService<ISlimServerService> hostTestService = new HostWcfService<ISlimServerService>(new Uri("http://localhost:" + port + "/SlimServerService"));
			hostTestService.Init(ObjectFactory.GetInstance<ISlimServerService>());

			IHostService<INodeService> nodeService = new HostWcfService<INodeService>(new Uri("http://localhost:" + port + "/NodeService"));
			nodeService.Init(ObjectFactory.GetInstance<INodeService>());

			AppDomain currentDomain = AppDomain.CurrentDomain;
			currentDomain.UnhandledException += UnhandledExceptionHandler;

			Log.AddEntry("Ready!");
			Console.ReadLine();
		}
Esempio n. 2
0
        static void Main(string[] args)
        {
            Log.AddEntry("Welcome to RegTesting Service V2!");

            //Init AutoMapper
            //AutoMapperServerInit.CreateMappings();

            //Init Structuremap
            IoC.Initialize();

            int port = RegtestingServerConfiguration.Port;

            Log.AddEntry("Loading Services on port " + port + ":");
            IHostService <ISlimServerService> hostTestService = new HostWcfService <ISlimServerService>(new Uri("http://localhost:" + port + "/SlimServerService"));

            hostTestService.Init(ObjectFactory.GetInstance <ISlimServerService>());

            IHostService <INodeService> nodeService = new HostWcfService <INodeService>(new Uri("http://localhost:" + port + "/NodeService"));

            nodeService.Init(ObjectFactory.GetInstance <INodeService>());

            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += UnhandledExceptionHandler;

            Log.AddEntry("Ready!");
            Console.ReadLine();
        }
Esempio n. 3
0
        /// <summary>
        /// Mainfunction to start the Servicehost
        /// </summary>
        /// <param name="arrArgs">Currently we have no supported parameters</param>
        private static void Main(string[] arrArgs)
        {
            Logger.Log("Welcome to RegTesting Service V2!");

            //Init AutoMapper
            AutoMapperServerInit.CreateMappings();
            //Init NHibernate
            ApplicationContext.AppConfigure();
            //Init Structuremap
            IoC.Initialize();

            int port = RegtestingServerConfiguration.Port;

            Logger.Log("Loading Services on port " + port + ":");
            IHostService <ITestService> hostTestService = new HostWcfService <ITestService>(new Uri("http://localhost:" + port + "/TestService"));

            hostTestService.Init(ObjectFactory.GetInstance <ITestService>());

            IHostService <IStatusService> hostStatusService = new HostWcfService <IStatusService>(new Uri("http://localhost:" + port + "/StatusService"));

            hostStatusService.Init(ObjectFactory.GetInstance <IStatusService>());

            IHostService <IBuildTaskService> buildTaskService = new HostWcfService <IBuildTaskService>(new Uri("http://localhost:" + port + "/BuildTaskService"));

            buildTaskService.Init(ObjectFactory.GetInstance <IBuildTaskService>());

            IHostService <ILocalTestService> localTestService = new HostWcfService <ILocalTestService>(new Uri("http://localhost:" + port + "/LocalTestService"));

            localTestService.Init(ObjectFactory.GetInstance <ILocalTestService>());

            IHostService <ISummaryService> summaryService = new HostWcfService <ISummaryService>(new Uri("http://localhost:" + port + "/SummaryService"));

            summaryService.Init(ObjectFactory.GetInstance <ISummaryService>());

            IHostService <INodeService> nodeService = new HostWcfService <INodeService>(new Uri("http://localhost:" + port + "/NodeService"));

            nodeService.Init(ObjectFactory.GetInstance <INodeService>());

            new RecycleLonglifeWorkerBackgroundTask(ObjectFactory.GetInstance <ITestPool>());

            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += UnhandledExceptionHandler;

            Logger.Log("Ready!");
            Console.ReadLine();
        }
Esempio n. 4
0
		/// <summary>
		/// Mainfunction to start the Servicehost
		/// </summary>
		/// <param name="arrArgs">Currently we have no supported parameters</param>
		private static void Main(string[] arrArgs)
		{

			Logger.Log("Welcome to RegTesting Service V2!");

			//Init AutoMapper
			AutoMapperServerInit.CreateMappings();
			//Init NHibernate
			ApplicationContext.AppConfigure();
			//Init Structuremap
			IoC.Initialize();

			int port = RegtestingServerConfiguration.Port;

			Logger.Log("Loading Services on port " + port + ":");
			IHostService<ITestService> hostTestService = new HostWcfService<ITestService>(new Uri("http://localhost:" + port + "/TestService"));
			hostTestService.Init(ObjectFactory.GetInstance<ITestService>());

			IHostService<IStatusService> hostStatusService = new HostWcfService<IStatusService>(new Uri("http://localhost:" + port + "/StatusService"));
			hostStatusService.Init(ObjectFactory.GetInstance<IStatusService>());

			IHostService<IBuildTaskService> buildTaskService = new HostWcfService<IBuildTaskService>(new Uri("http://localhost:" + port + "/BuildTaskService"));
			buildTaskService.Init(ObjectFactory.GetInstance<IBuildTaskService>());

			IHostService<ILocalTestService> localTestService = new HostWcfService<ILocalTestService>(new Uri("http://localhost:" + port + "/LocalTestService"));
			localTestService.Init(ObjectFactory.GetInstance<ILocalTestService>());

			IHostService<ISummaryService> summaryService = new HostWcfService<ISummaryService>(new Uri("http://localhost:" + port + "/SummaryService"));
			summaryService.Init(ObjectFactory.GetInstance<ISummaryService>());

			IHostService<INodeService> nodeService = new HostWcfService<INodeService>(new Uri("http://localhost:" + port + "/NodeService"));
			nodeService.Init(ObjectFactory.GetInstance<INodeService>());

			new RecycleLonglifeWorkerBackgroundTask(ObjectFactory.GetInstance<ITestPool>());

			AppDomain currentDomain = AppDomain.CurrentDomain;
			currentDomain.UnhandledException += UnhandledExceptionHandler;

			Logger.Log("Ready!");
			Console.ReadLine();
			
		}