static void Main(string[] args) { SimpleHandler handler = new SimpleHandler(); HttpServiceControler server = new HttpServiceControler(); server.AddHandler(handler); server.Start(); Console.WriteLine("Server has start."); Console.WriteLine("Try to type http://localhost:8080/ in web broswer."); Console.ReadLine(); server.Stop(); }
protected override void OnStop() { //stop server _webServer.Stop(); _cacheManCollection.Close(); }
public void Stop() { //stop server _webServer.Stop(); _cacheManCollection.Close(); }