Ejemplo n.º 1
0
 /// <summary>
 /// Initialises a new HttpServer.
 /// </summary>
 /// <param name="port"></param>
 public HttpServer(int port = 80)
 {
     // Init the Nacny self host
     var bootstrapper = new ToucheeNancyBootStrapper();
     _host = new NancyHost(
         //new Uri( String.Format("http://localhost:{0}/", port) ),
         bootstrapper,
         this.CollectUris(port)
     );
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialises a new HttpServer.
        /// </summary>
        /// <param name="port"></param>
        public HttpServer(int port = 80)
        {
            // Init the Nacny self host
            var bootstrapper = new ToucheeNancyBootStrapper();

            _host = new NancyHost(
                //new Uri( String.Format("http://localhost:{0}/", port) ),
                bootstrapper,
                this.CollectUris(port)
                );
        }