Example #1
0
 public RequestHelper(HttpListenerRequest request, Label label, Taurus.FingerReadData.ProcessReadData prog, KQTextFormatInfo textFormat)
 {
     this.request    = request;
     this.label      = label;
     this.prog       = prog;
     this.textFormat = textFormat;
 }
Example #2
0
 public void Setup(int port, Taurus.FingerReadData.ProcessReadData prog, Label label, KQTextFormatInfo textFormat)
 {
     try
     {
         this.label      = label;
         this.prog       = prog;
         this.textFormat = textFormat;
         if (port == 0)
         {
             stop = true;
             httpListener.Close();
             return;
         }
         stop = false;
         httpListener.AuthenticationSchemes = AuthenticationSchemes.Anonymous;
         httpListener.Prefixes.Add(string.Format("http://*:{0}/", port));
         httpListener.Start();
         Receive();
     }
     catch
     {
     }
 }