예제 #1
0
 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);
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
 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);
 }