コード例 #1
0
 private void ProcessNormalTradingCommand(Protocal.TradingCommand tradingCommand)
 {
     if (!string.IsNullOrEmpty(tradingCommand.Content))
     {
         _changedContentCommandProcessor.Process(tradingCommand);
     }
     else
     {
         var commandProcessor = this.GetCommandProcessor(tradingCommand);
         if (commandProcessor != null)
         {
             _broadcast.BroadcastCommands(_token, commandProcessor.Process());
         }
     }
 }
コード例 #2
0
        private void UpdateAccount(Protocal.TradingCommand tradingCommand)
        {
            var commands = this.CreateCommands(tradingCommand);

            Logger.InfoFormat("UpdateAccount commands count = {0}", commands.Count);
            if (commands.Count > 0)
            {
                _broadcast.BroadcastCommands(_token, commands.ToArray());
            }
        }