Exemplo n.º 1
0
 static async Task Main(string[] args)
 {
     string  uri     = "http://localhost:5000/";
     IServer server  = new MyHttpServer(uri);
     var     handler = new ApplicationBuilder()
                       .Use(FooMiddleware)
                       .Use(BarMiddleware)
                       .Use(BazMiddleware)
                       .Build();
     await server.StartAsync(handler);
 }