Exemplo n.º 1
0
        /// <summary>
        /// Methord Fired on login arrived from Simulated Exchange.
        /// </summary>
        private void LoginArrived()
        {
            if (Logger.IsInfoEnabled)
            {
                Logger.Info("Simulated Exchange Logon Arrived", _type.FullName, "LoginArrived");
            }

            _isConnected = true;

            if (LogonArrived != null)
            {
                LogonArrived.Invoke(Common.Core.Constants.MarketDataProvider.SimulatedExchange);
            }
        }
 /// <summary>
 /// Receives Login Message from Simulated Exchange
 /// </summary>
 private void LoginArrivedFromSimulatedExchange()
 {
     try
     {
         if (Logger.IsInfoEnabled)
         {
             Logger.Info("Loggin Message Arrived From Simulated Exchange", _type.FullName,
                         "LoginArrivedFromSimulatedExchange");
         }
         if (LogonArrived != null)
         {
             LogonArrived.Invoke(Common.Core.Constants.OrderExecutionProvider.SimulatedExchange);
         }
         _isConnected = true;
     }
     catch (Exception exception)
     {
         Logger.Error(exception, _type.FullName, "LoginArrivedFromSimulatedExchange");
     }
 }