Skip to content

Instantly share code, notes, and snippets.

@fasetto
Created April 26, 2017 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fasetto/50b77fed75854a34fe1e300726d56b6d to your computer and use it in GitHub Desktop.
Save fasetto/50b77fed75854a34fe1e300726d56b6d to your computer and use it in GitHub Desktop.
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();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment