Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HeartbeatAdapter"/>.
        /// </summary>
        /// <param name="innerAdapter">Underlying adapter.</param>
        public HeartbeatAdapter(IMessageAdapter innerAdapter)
            : base(innerAdapter)
        {
            InnerAdapter.NewOutMessage += AdapterOnNewOutMessage;

            _reConnectionSettings = InnerAdapter.ReConnectionSettings;
        }
Пример #2
0
        /// <summary>
        /// Создать <see cref="HeartbeatAdapter"/>.
        /// </summary>
        /// <param name="adapter">Адаптер.</param>
        public HeartbeatAdapter(IMessageAdapter adapter)
        {
            if (adapter == null)
            {
                throw new ArgumentNullException("adapter");
            }

            _adapter = adapter;
            _adapter.NewOutMessage += AdapterOnNewOutMessage;

            _reConnectionSettings = _adapter.ReConnectionSettings;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="HeartbeatMessageAdapter"/>.
 /// </summary>
 /// <param name="innerAdapter">Underlying adapter.</param>
 public HeartbeatMessageAdapter(IMessageAdapter innerAdapter)
     : base(innerAdapter)
 {
     _reConnectionSettings = ReConnectionSettings;
     _timeMessage.Adapter  = this;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeartbeatAdapter"/>.
 /// </summary>
 /// <param name="innerAdapter">Underlying adapter.</param>
 public HeartbeatAdapter(IMessageAdapter innerAdapter)
     : base(innerAdapter)
 {
     _reConnectionSettings = InnerAdapter.ReConnectionSettings;
 }