Ejemplo n.º 1
0
 public RequestHelper(Database db, HttpListenerRequest request, Label label, ECard78.FingerReadData.ProcessSeaRealData prog, KQTextFormatInfo textFormat)
 {
     this.db         = db;
     this.request    = request;
     this.label      = label;
     this.prog       = prog;
     this.textFormat = textFormat;
 }
Ejemplo n.º 2
0
 public void Setup(Database db, int port, Label label, KQTextFormatInfo textFormat, ECard78.FingerReadData.ProcessSeaRealData prog)
 {
     try
     {
         this.db         = db;
         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
     {
     }
 }