System.Net.FtpWebRequest.TimerCallback C# (CSharp) Method

TimerCallback() private method

Because this is called from the timer thread, neither it nor any methods it calls can call user code.

private TimerCallback ( TimerThread timer, int timeNoticed, object context ) : void
timer TimerThread
timeNoticed int
context object
return void
        private void TimerCallback(TimerThread.Timer timer, int timeNoticed, object context)
        {
            if (NetEventSource.IsEnabled) NetEventSource.Info(this);

            FtpControlStream connection = _connection;
            if (connection != null)
            {
                if (NetEventSource.IsEnabled) NetEventSource.Info(this, "aborting connection");
                connection.AbortConnect();
            }
        }