Ejemplo n.º 1
0
 /// <summary>
 /// 处理所有的OnRsp****回调事件
 /// </summary>
 protected void CbOnRspFunc(IntPtr pObject, EnumOnRspType type, IntPtr pParam, ThostFtdcRspInfoField pRspInfo, int nRequestID, [MarshalAs(UnmanagedType.I1)] bool bIsLast)
 {
     if (OnRspEvent != null)
     {
         OnRspEvent(this, new OnRspEventArgs(type, pParam, pRspInfo, nRequestID, bIsLast));
     }
 }
Ejemplo n.º 2
0
 public OnRspEventArgs(EnumOnRspType EventType, IntPtr pParam, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     this.EventType = EventType;
     this.Param     = pParam;
     this.RspInfo   = pRspInfo;
     this.RequestID = nRequestID;
     this.IsLast    = bIsLast;
 }