Exemple #1
0
        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();
        }
Exemple #2
0
 protected override void OnStop()
 {
     //stop server
     _webServer.Stop();
     _cacheManCollection.Close();
 }
Exemple #3
0
 public void Stop()
 {
     //stop server
     _webServer.Stop();
     _cacheManCollection.Close();
 }