Ejemplo n.º 1
0
 public static void Main(params string[] args)
 {
     Settings.DefaultDashboard = "sample";
     Settings.Views = "dashboards";
     var nancyHost = new NancyStreamHost(new Bootstrapper(),new Uri("http://localhost:1234"));
     
     nancyHost.Start();
     Console.ReadKey();
     nancyHost.Stop();
 }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            var type = typeof(EventModule).ToString();
            var host = new NancyStreamHost(new Uri("http://localhost:1235"));

            host.Start();
            Console.WriteLine("host started at " + "http://localhost:1235");
            Console.WriteLine("press key to stop");
            Console.Read();
            host.Stop();
        }