Beispiel #1
0
 public object Any(WhScan request)
 {
     var signature = this.Request.Headers.GetValues("Signature");
     if (signature != null)
     {
         if (auth.AuthResult(signature[0].ToString(), this.Request.RawUrl))
         {
             var Result = whScanLogic.InsertResult(request);
             return new WhScanResponse { intResult = Result };
         }
     }
     return new AuthFaildResponse { strResult = "No Authentication." };
 }
Beispiel #2
0
        public object Any(WhScan request)
        {
            var signature = this.Request.Headers.GetValues("Signature");

            if (signature != null)
            {
                if (auth.AuthResult(signature[0].ToString(), this.Request.RawUrl))
                {
                    var Result = whScanLogic.InsertResult(request);
                    return(new WhScanResponse {
                        intResult = Result
                    });
                }
            }
            return(new AuthFaildResponse {
                strResult = "No Authentication."
            });
        }