Пример #1
0
        /**
         * Timer elapse event handler, raised only when the client has timed out.
         *
         * @param source
         *  The sending object.
         * @param e
         *  The elapsed event arguments.
         */
        private void OnTimeout(object source, ElapsedEventArgs e)
        {
            Limits.TimeoutTimer timer = (Limits.TimeoutTimer)source;
            timer.Stop();
            Connection connection = (Connection)timer.Tag;

            TimeoutEvent(connection, timer.Interval);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Asterion.Connection"/> class.
 /// </summary>
 public Connection()
 {
     timer = new Limits.TimeoutTimer(this);
 }
Пример #3
0
 public Connection()
 {
     timer = new Limits.TimeoutTimer(this);
 }