Example #1
0
 private void OnHistoricalDataRequestError(object sender, HistoricalDataErrorEventArgs e)
 {
     if (e.RequestId == this.request.RequestId)
     {
         this.mres.Set();
     }
 }
Example #2
0
 public void EmitHistoricalDataError(global::OpenQuant.API.HistoricalDataRequest request, string message)
 {
     if (this.HistoricalDataRequestError != null)
     {
         HistoricalDataErrorEventArgs args = new HistoricalDataErrorEventArgs(request.request.RequestId, request.request.Instrument, this, 0, message);
         this.HistoricalDataRequestError(this, args);
     }
 }
Example #3
0
        private void iC2ZqQH0T([In] HistoricalDataRequest obj0, [In] string obj1)
        {
            HistoricalDataErrorEventArgs args = new HistoricalDataErrorEventArgs(obj0.RequestId, obj0.Instrument, (IHistoricalDataProvider)this, 0, obj1);

            if (this.z159rO9Na == null)
            {
                return;
            }
            this.z159rO9Na((object)this, args);
        }
Example #4
0
        private void NxZTw30av([In] HistoricalDataRequest obj0, [In] string obj1)
        {
            HistoricalDataErrorEventArgs args = new HistoricalDataErrorEventArgs(obj0.RequestId, obj0.Instrument, (IHistoricalDataProvider)this, 0, obj1);

            if (this.FWtYcSNLi == null)
            {
                return;
            }
            this.FWtYcSNLi((object)this, args);
        }
Example #5
0
        private void FAkkLYX03J([In] object obj0, [In] HistoricalDataErrorEventArgs obj1)
        {
            uRIUcg8mp5qy3pl442 riUcg8mp5qy3pl442 = (uRIUcg8mp5qy3pl442)null;

            if (!this.V43ldlVmhs.TryGetValue(obj1.RequestId, out riUcg8mp5qy3pl442))
            {
                return;
            }
            this.zYhk9pJVyB(riUcg8mp5qy3pl442, nB29ckVlruqARiYysQ.Error);
            this.PUwk3oEbct(riUcg8mp5qy3pl442, obj1.Message);
            this.puvkWE62bU();
            this.hRhl1skFVG.Remove(obj1.RequestId);
        }
Example #6
0
        private void provider_HistoricalDataRequestError(object sender, HistoricalDataErrorEventArgs args)
        {
            DownloadViewItem downloadViewItem = (DownloadViewItem)null;

            if (!this.items.TryGetValue(((HistoricalDataEventArgs)args).RequestId, out downloadViewItem))
            {
                return;
            }
            this.SetItemStatus(downloadViewItem, DownloadItemStatus.Error);
            this.SetItemMessage(downloadViewItem, args.Message);
            this.UpdateProgressBar();
            this.activeRequests.Remove(((HistoricalDataEventArgs)args).RequestId);
        }
Example #7
0
		public void EmitHistoricalDataError(global::OpenQuant.API.HistoricalDataRequest request, string message)
		{
			if (this.HistoricalDataRequestError != null)
			{
				HistoricalDataErrorEventArgs args = new HistoricalDataErrorEventArgs(request.request.RequestId, request.request.Instrument, this, 0, message);
				this.HistoricalDataRequestError(this, args);
			}
		}