Created
April 26, 2017 16:32
-
-
Save fasetto/50b77fed75854a34fe1e300726d56b6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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