Esempio n. 1
0
    static void Main(string[] args)
    {
        HttpListener listener = new HttpListener();

        listener.Prefixes.Add("https://127.0.0.1:5678/");
        listener.Start();
        while (true)
        {
            HttpListenerContext context = listener.GetContext();
            ListenerService     svc     = new StateNameService();
            svc.ProcessRequest(context);
        }

        Console.WriteLine("Press <ENTER> to shutdown");
        Console.ReadLine();
    }
Esempio n. 2
0
 public void TearDown()
 {
     StateNameService.Stop();
 }
Esempio n. 3
0
 public void Setup()
 {
     StateNameService.Start(8005);
 }