public void OrdEnqueue(RequestContent cmd) { if (cmd != null) { _OrdQueue.Enqueue(cmd, false); } }
public void Enqueue(object data) { if (data != null) { _ResponseQueue.Enqueue(data, false); } }
public void QryEnqueue(RequestContent cmd) { if (cmd != null) { if (cmd.Params.Count == 0 && _CmdQueue.CheckUpdateReqInQueue(cmd)) { Util.Log("TradeApi ExecQueue: " + cmd.FunctionName + " is blocked when enqueues."); } else { Util.Log("TradeApi ExecQueue: " + cmd.FunctionName + " enqueues."); _CmdQueue.Enqueue(cmd, false); } } }
private void ScanCompelete() { if (_currentScanOperation != null && _callbackQueue != null) { _callbackQueue.Enqueue(new NoReturnAndParamDelegate(() => { _currentScanOperation.ScanCompelete(); })); } }