public void Run() { IApplication application = new MainApplication(); IAppRouteConfig routeConfig = new AppRouteConfig(); application.Configurate(routeConfig); this.server = new MyWebServer(1337, routeConfig); this.server.Run(); }
public void Run() { var mainApplication = new MainApplication(); var appRouteConfig = new AppRouteConfig(); mainApplication.Configure(appRouteConfig); var webServer = new MyWebServer(1337, appRouteConfig); webServer.Run(); }
static int Main(string[] args) { MyWebServer ws = new MyWebServer(); return(0); }