Ejemplo n.º 1
0
 private void PostMessageFailedCallBack(IWebRequestQy sender, IPostEventArgs eventArgs)
 {
     if (RequestFailedEvent != null)
     {
         IPostEventArgs   _args   = eventArgs as IPostEventArgs;
         WebRequestArgsQy pushArg = new WebRequestArgsQy();
         pushArg.SetMessage(_args.ErrMessage);
     }
 }
Ejemplo n.º 2
0
 private void PostMessageCompleteCallBack(IWebRequestQy sender, IPostEventArgs eventArgs)
 {
     if (RequestCompleteEvent != null)
     {
         string           str     = Encoding.UTF8.GetString(eventArgs.ReceiveBuffer);
         WebRequestArgsQy pushArg = new WebRequestArgsQy();
         pushArg.SetMessage(str);
         RequestCompleteEvent(this, pushArg);
     }
 }