public OrderServerPOrder_Request(OrderServerPOrder oso, POrder order, String accountName, String password, PBHTS hts) { _oso = oso; _order = order; _hts = hts; _accountName = accountName; _password = password; _bDone = false; _bGotReceiveResult = true; _bGotReceiveMessageCode = true; }
public OrderServerPOrder_Cancel(OrderServerPOrder oso, POrder order, String accountName, String password, PBHTS hts) { _oso = oso; _order = order; _hts = hts; _accountName = accountName; _password = password; _bDone = false; _bGotReceiveMessageCode = true; _sendCount = 0; }
void CreateOrderServerPOrderCount_Raw(int targetCount) { int curCount = _ospoUsable.Count + _ospoUsed.Count; for (int i = curCount; i < targetCount; ++i) // 기본 수량만큼 만든다. { OrderServerPOrder ospo = new OrderServerPOrder(this.AccountName, this.Password, this); _ospoUsable.Enqueue(ospo); AccountManager.Ins().RegisterOrderServerPOrder(ospo); } if (targetCount > curCount) { OrderServerPOrderCount = targetCount; } }
public void ReusableOrderServerPOrder(OrderServerPOrder ospo) { lock (locker) { if (_ospoUsed.Contains(ospo)) { _ospoUsed.Remove(ospo); } else { logger.Error("reuse command error"); Util.KillWithNotice("reuse command error"); return; } _ospoUsable.Enqueue(ospo); } }
public void RegisterOrderServerPOrder(OrderServerPOrder oso) { lock (locker) { _osos.Add(oso); } }