Sunday, December 01, 2013

ServiceStack Self Hosting

While there is a HTTPListener  available in .NET,
making it a full web server is not quick without tools...

Self hosting · ServiceStack/ServiceStack Wiki · GitHub:
"It's very easy to host ServiceStack in a console app or in a windows service. "
var listeningOn = args.Length == 0 ? "http://*:1337/" : args[0];
        var appHost = new AppHost();
        appHost.Init();
        appHost.Start(listeningOn);

online demo: All Rockstars


No comments: