/** * 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); }
/// <summary> /// Initializes a new instance of the <see cref="Asterion.Connection"/> class. /// </summary> public Connection() { timer = new Limits.TimeoutTimer(this); }
public Connection() { timer = new Limits.TimeoutTimer(this); }