Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
 }