GSF.Net.Ftp.FtpClient.OnResponseReceived C# (CSharp) Method

OnResponseReceived() private method

private OnResponseReceived ( string response ) : void
response string
return void
        internal void OnResponseReceived(string response)
        {
            if ((object)ResponseReceived != null)
                ResponseReceived(this, new EventArgs<string>(response));
        }

Usage Example

Esempio n. 1
0
        /// <summary>
        /// Refresh response from control channel.
        /// </summary>
        public void RefreshResponse()
        {
            if ((object)m_connection == null)
            {
                return;
            }

            lock (this)
            {
                m_lastResponse = new FtpResponse(m_connection.GetStream());
            }

            foreach (string s in m_lastResponse.Responses)
            {
                m_sessionHost.OnResponseReceived(s);
            }
        }