static void Main(string[] args) { WebServer ws = new WebServer(SendResponse, "http://pastest1.cloudapp.net:80/test/"); ws.Run(); Console.WriteLine("A simple webserver. Press a key to quit."); Console.ReadKey(); ws.Stop(); }
public void Run() { var mainApplication = new GameStoreApp(); var appRouteConfig = new AppRouteConfig(); mainApplication.InitalizeDatabase(); mainApplication.Configure(appRouteConfig); var webServer = new WebServer(8230, appRouteConfig); webServer.Run(); }