Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     //IoCKernel.Init(new DependencyResolver());
     ServerHub hub = new ServerHub();
     // This will *ONLY* bind to localhost, if you want to bind to all addresses
     // use http://*:8080 to bind to all addresses.
     // See http://msdn.microsoft.com/en-us/library/system.net.httplistener.aspx
     // for more information.
     // For Testing only: Change to your localhost IP address:
     string url = "http://10.1.194.178:8081";
     using (WebApp.Start(url))
     {
         Console.WriteLine("Server running on {0}", url);
         Console.ReadLine();
     }
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            //IoCKernel.Init(new DependencyResolver());
            ServerHub hub = new ServerHub();
            // This will *ONLY* bind to localhost, if you want to bind to all addresses
            // use http://*:8080 to bind to all addresses.
            // See http://msdn.microsoft.com/en-us/library/system.net.httplistener.aspx
            // for more information.
            // For Testing only: Change to your localhost IP address:
            string url = "http://10.1.194.178:8081";

            using (WebApp.Start(url))
            {
                Console.WriteLine("Server running on {0}", url);
                Console.ReadLine();
            }
        }