Пример #1
0
        /// <summary>
        /// Создать <see cref="ETradeTrader"/>.
        /// </summary>
        public ETradeTrader()
        {
            _adapter = new ETradeMessageAdapter(TransactionIdGenerator);

            Adapter.InnerAdapters.Add(_adapter.ToChannel(this));

            ReConnectionSettings.TimeOutInterval = TimeSpan.FromMinutes(5);
            ReConnectionSettings.Interval        = TimeSpan.FromMinutes(1);
            ReConnectionSettings.AttemptCount    = 5;
        }
Пример #2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="ETradeTrader"/>.
		/// </summary>
		public ETradeTrader()
		{
			CreateAssociatedSecurity = true;

			_adapter = new ETradeMessageAdapter(TransactionIdGenerator);

			Adapter.InnerAdapters.Add(_adapter.ToChannel(this));

			ReConnectionSettings.TimeOutInterval = TimeSpan.FromMinutes(5);
			ReConnectionSettings.Interval = TimeSpan.FromMinutes(1);
			ReConnectionSettings.AttemptCount = 5;
		}