public ICommand CreateAddOrder(IFixMessageGenerator fixMessageGenerator, FixSessionID sessionID, OrderData orderData, string execID) { return new AddOrder(this, fixMessageGenerator, _orderMediator, sessionID, orderData, execID); }
public void EnqueueAddOrder(IFixMessageGenerator messageGenerator, SessionID sessionID, OrderData orderData, string execID) { var internalSessionID = _sessionMediator.LookupInternalSessionID(sessionID); var cmd = _commandFactory.CreateAddOrder(messageGenerator, internalSessionID, orderData, execID); _commandFactory.IncomingQueue.Enqueue(cmd); }
public AddOrder(CommandFactory commandFactory, IFixMessageGenerator fixMessageGenerator, OrderMediator orderMediator, FixSessionID sessionID, OrderData orderData, string execID) { _commandFactory = commandFactory; _fixMessageGenerator = fixMessageGenerator; _orderMediator = orderMediator; _sessionID = sessionID; _orderData = orderData; _execID = execID; }
public SendRejectNewOrder(IFixMessageGenerator messageGenerator, SessionMediator sessionMediator, OrderData orderData, string execID, string rejectionMessage, int? rejectionCode, FixSessionID sessionID) { _messageGenerator = messageGenerator; _sessionMediator = sessionMediator; _order = orderData; _execID = execID; _rejectionMessage = rejectionMessage; _rejectionCode = rejectionCode; _sessionID = sessionID; }
public ICommand CreateSendRejectNewOrder(IFixMessageGenerator fixMessageGenerator, FixSessionID sessionID, OrderData orderData, string execID, string rejectionMessage, int? rejectionCode) { return new SendRejectNewOrder(fixMessageGenerator, _sessionMediator, orderData, execID, rejectionMessage, rejectionCode, sessionID); }