Esempio n. 1
0
        public void Execute(ExecutingOptions options)
        {
            var host = new RhinoServiceBusHost();

            host.SetArguments(options);
            try
            {
                host.DebugStart(new string[0]);
                bool keepGoing = true;
                while (keepGoing)
                {
                    Console.WriteLine("Enter 'cls' to clear the screen, 'q' to exit");
                    var op = Console.ReadLine() ?? "";
                    switch (op.ToLowerInvariant())
                    {
                    case "q":
                        keepGoing = false;
                        break;

                    case "cls":
                        Console.Clear();
                        break;
                    }
                }
                host.Stop();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.ReadKey();
            }
        }
Esempio n. 2
0
        public void Execute(ExecutingOptions options)
        {
            var host = new RhinoServiceBusHost();
            host.SetArguments(options);
            try
            {
				host.DebugStart(new string[0]);
            	bool keepGoing = true;
				while (keepGoing)
            	{
					Console.WriteLine("Enter 'cls' to clear the screen, 'q' to exit");
            		var op = Console.ReadLine() ?? "";
            		switch (op.ToLowerInvariant())
            		{
						case "q":
            				keepGoing = false;
            				break;
						case "cls":
							Console.Clear();
            				break;
            		}

            	}
                host.Stop();
            }
            catch (Exception e)
            {
                Log.Fatal("Host has crashed", e);
                Console.WriteLine(e);
                Console.ReadKey();
            }
            
        }
Esempio n. 3
0
        public void Execute(ExecutingOptions options)
        {
            var host = new RhinoServiceBusHost();

            host.SetArguments(options);
            ServiceBase.Run(host);
        }
Esempio n. 4
0
        public void Execute(ExecutingOptions options)
        {
            var host = new RhinoServiceBusHost();

            host.SetArguments(options);
            host.InitialDeployment(options.Account);
        }
Esempio n. 5
0
 public void Execute(ExecutingOptions options)
 {
     var host = new RhinoServiceBusHost();
     host.SetArguments(options);
     try
     {
         host.DebugStart(new string[0]);
         Console.WriteLine("Press any key to continue...");
         Console.ReadKey();
         host.Stop();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         Console.ReadKey();
     }
 }
Esempio n. 6
0
        public void Execute(ExecutingOptions options)
        {
            var host = new RhinoServiceBusHost();

            host.SetArguments(options);
            try
            {
                host.DebugStart(new string[0]);
                Console.WriteLine("Press any key to continue...");
                Console.ReadKey();
                host.Stop();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.ReadKey();
            }
        }
Esempio n. 7
0
 public void Execute(ExecutingOptions options)
 {
     var host = new RhinoServiceBusHost();
     host.SetArguments(options);
     host.InitialDeployment(options.Account);
 }
Esempio n. 8
0
 public void Execute(ExecutingOptions options)
 {
     var host = new RhinoServiceBusHost();
     host.SetArguments(options);
     ServiceBase.Run(host);
 }