fasetto
4/26/2017 - 4:32 PM

hello-service-console-host.cs

using System;

namespace ServiceStackSample.ConsoleHost
{
    class Program
    {
        static void Main(string[] args)
        {
            string listeningOn = "http://127.0.0.1:1337/";

            var appHost = new AppHost()
                .Init()
                .Start(listeningOn);

            Console.WriteLine($"AppHost created at {DateTime.Now}, listening on {listeningOn}");
            Console.Write("Press any key to exit..");

            Console.ReadKey();
        }
    }
}