Exemplo n.º 1
0
        public WebRequestGate(string version)
        {
            this.version = version;

            if (!string.IsNullOrEmpty(this.version) && Convert.ToInt32(this.version) == 1)  //新加签方式
            {
                this.watchDog = new NewWebRequestWatchDog();
            }
            else
            {
                this.watchDog = new ElderWebReqeustWatchDog();  //老加密方式
            }
        }
Exemplo n.º 2
0
 public WebRequestGate(IWebRequestWatchDog dog)
 {
     this.watchDog = dog;
 }