Last active
August 29, 2015 14:03
-
-
Save srdjan/eee33ff28f12fc891407 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 Simplr.Middleware; | |
namespace App.Runner { | |
internal static class Program { | |
static void Main() { | |
var _pipeline = new Pipeline() | |
.Use(new ResourceResolver()) | |
.Use(new HypermediaValidator()) | |
.Use(new ApiCall()) | |
.Use(new HypermediaUpdater()) | |
.Use(new HALSerializer()); | |
var host = new Host(pipeline); | |
host.AddServer("RequestResponse", new NowinServer(8080)); | |
host.Run(); | |
Console.WriteLine("Listening on port 8080. Enter to exit."); | |
Console.ReadLine(); | |
host.Stop(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment