Skip to content

Instantly share code, notes, and snippets.

@srdjan
Last active August 29, 2015 14:03
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 srdjan/eee33ff28f12fc891407 to your computer and use it in GitHub Desktop.
Save srdjan/eee33ff28f12fc891407 to your computer and use it in GitHub Desktop.
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