Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.