Exemplo n.º 1
0
 public void CancelHistoricalDataRequest(string requestId)
 {
     if (!this.pxqdEt2GB)
     {
         this.YchVmYD17(SbDbdFkjjUR5MmWTlj.fvNFD9DS2(380));
     }
     else
     {
         WebRequest webRequest;
         if (!this.K4r2jjlJs.TryGetValue(requestId, out webRequest))
         {
             return;
         }
         this.YZKOeBcIM[(object)requestId] = (object)true;
         webRequest.Abort();
     }
 }
Exemplo n.º 2
0
 public void SendHistoricalDataRequest(HistoricalDataRequest request)
 {
     if (!this.pxqdEt2GB)
     {
         this.YchVmYD17(SbDbdFkjjUR5MmWTlj.fvNFD9DS2(0));
     }
     else if (request.DataType != HistoricalDataType.Daily)
     {
         this.YchVmYD17(string.Format(SbDbdFkjjUR5MmWTlj.fvNFD9DS2(32), (object)request.DataType));
     }
     else
     {
         WebRequest webRequest = WebRequest.Create(string.Format((IFormatProvider)CultureInfo.InvariantCulture, SbDbdFkjjUR5MmWTlj.fvNFD9DS2(120), (object)(request.Instrument as Instrument).GetSymbol(this.Name), (object)request.BeginDate, (object)request.EndDate));
         this.K4r2jjlJs.Add(request.RequestId, webRequest);
         webRequest.BeginGetResponse(new AsyncCallback(this.tm9qNM8Cd), (object)request);
     }
 }