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;
		}
Example #2
0
 private IApplicationLoader bootstrap()
 {
     return(BottleServiceApplication.FindLoader(_configuration.BootstrapperType));
 }