public void Pre_test() { _appHost = new AppHost(); _appHost.Init(); _appHost.InitDb(); _appHost.Start(_restBase); }
static void Main(string[] args) { var listeningOn = args.Length == 0 ? "http://localhost:1337/" : args[0]; var appHost = new AppHost(); appHost.Init(); appHost.InitDb(); appHost.Start(listeningOn); Console.WriteLine("AppHost Created at {0}, listening on {1}", DateTime.Now, listeningOn); Console.ReadKey(); }
protected override void OnStart(string[] args) { eventLog.WriteEntry("Tracks Rest API host starting"); var settings = new AppSettings(); Host = new AppHost(); Host.Init(); Host.InitDb(); Host.Start(settings.GetString("restBaseAddress")); }