public static async Task StartAsync(IMvcApplication application) { var routeTable = new List <Route>(); application.ConfugreServices(); application.Configure(routeTable); AutoRegisterStaticFilesRoute(routeTable); AutoRegisterNonStaticFilesRoute(routeTable, application); Console.WriteLine("Registred routes: "); foreach (var route in routeTable) { Console.WriteLine(route); } Console.WriteLine("Request: "); Console.WriteLine(); var httpServer = new HttpServer(80, routeTable); await httpServer.StartAsync(); }