Inheritance: ServiceStack.AppHostHttpListenerBase
Esempio n. 1
0
 static void Main(string[] args)
 {
     var serverAppHost = new ServerAppHost();
     serverAppHost.Init();
     serverAppHost.Start("http://localhost:81/"); //Starts HttpListener listening on 81
     Console.WriteLine("PowerDeploy server started on localhost:81");
     Console.ReadLine(); //Block the server from exiting (i.e. if running inside Console App)
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var serverAppHost = new ServerAppHost();

            serverAppHost.Init();
            serverAppHost.Start("http://localhost:81/"); //Starts HttpListener listening on 81
            Console.WriteLine("PowerDeploy server started on localhost:81");
            Console.ReadLine();                          //Block the server from exiting (i.e. if running inside Console App)
        }