private BottleServiceRunner bootstrap()
		{
			var application = new BottleServiceApplication();
			var runner = application.Bootstrap();

			if (!runner.Services.Any())
			{
				throw new ApplicationException("No services were detected.  Shutting down.");
			}

			runner.Services.Each(x => Console.WriteLine("Started " + x));

			return runner;
		}
Ejemplo n.º 2
0
 private IApplicationLoader bootstrap()
 {
     return(BottleServiceApplication.FindLoader(_configuration.BootstrapperType));
 }