Beispiel #1
0
 /// <summary>
 /// Occurs when a command has been sent to the FTP server.
 /// </summary>
 /// <param name="ftpClient"></param>
 /// <param name="message"></param>
 private void Ftp_CommandSent(object ftpClient, FTPMessageEventArgs message)
 {
     EventManager.OnCommandSent(message.Message);
 }
Beispiel #2
0
 /// <summary>
 /// Occurs when a reply has been received from the FTP server.
 /// </summary>
 /// <param name="ftpClient"></param>
 /// <param name="message"></param>
 private void Ftp_ReplyReceived(object ftpClient, FTPMessageEventArgs message)
 {
     EventManager.OnReplyReceived(message.Message);
 }
Beispiel #3
0
 internal void CommandSentControl(object client, FTPMessageEventArgs message)
 {
     if (CommandSent != null)
         CommandSent(this, message);
 }
Beispiel #4
0
 internal void ReplyReceivedControl(object client, FTPMessageEventArgs message) 
 {
     if (ReplyReceived != null)
         ReplyReceived(this, message);
 }
Beispiel #5
0
 /// <summary>
 /// Occurs when a reply has been received from the FTP server.
 /// </summary>
 /// <param name="ftpClient"></param>
 /// <param name="message"></param>
 private void Ftp_ReplyReceived(object ftpClient, FTPMessageEventArgs message)
 {
     if (_host != null)
         _host.OnNotificationMessage(this, message.Message);
 }
 /// <summary> 
 /// Log an FTP reply being sent back to the client
 /// </summary>
 internal static void LogReply(object client, FTPMessageEventArgs message)
 {
     messages.Append(message.Message).Append("\n");
 }
Beispiel #7
0
 /// <summary>Raise the <see cref="ReplyReceived"/> event.</summary>
 /// <param name="e">Event arguments.</param>
 protected internal void RaiseReplyReceived(FTPMessageEventArgs e)
 {
     if (areEventsEnabled && ReplyReceived != null)
         InvokeEventHandler(ReplyReceived, this, e);
 }
Beispiel #8
0
 /// <summary>
 /// Occurs when a command has been sent to the FTP server.
 /// </summary>
 /// <param name="ftpClient"></param>
 /// <param name="message"></param>
 private void Ftp_CommandSent(object ftpClient, FTPMessageEventArgs message)
 {
     if (_host != null)
         _host.OnNotificationMessage(this, message.Message);
 }
Beispiel #9
0
 /// <summary>Raise the <see cref="CommandSent"/> event.</summary>
 /// <param name="e">Event arguments.</param>
 protected internal void RaiseCommandSent(FTPMessageEventArgs e)
 {
     if (areEventsEnabled && CommandSent != null)
         InvokeEventHandler(CommandSent, this, e);
 }
Beispiel #10
0
 /// <summary>
 /// Event-handler for <see cref="IFileTransferClient.ReplyReceived"/> events received from <see cref="IFileTransferClient"/>s.
 /// </summary>
 /// <remarks>This method simply passes <see cref="IFileTransferClient.ReplyReceived"/> events onto
 /// <see cref="ReplyReceived"/> handlers.</remarks>
 /// <param name="sender">Sender of events.</param>
 /// <param name="e">Event arguments.</param>
 protected internal virtual void ftpClient_ReplyReceived(object sender, FTPMessageEventArgs e)
 {
     RaiseReplyReceived(e);
 }
Beispiel #11
0
 /// <summary>
 /// Event-handler for <see cref="IFileTransferClient.CommandSent"/> events received from <see cref="IFileTransferClient"/>s.
 /// </summary>
 /// <remarks>This method simply passes <see cref="IFileTransferClient.CommandSent"/> events onto
 /// <see cref="CommandSent"/> handlers.</remarks>
 /// <param name="sender">Sender of events.</param>
 /// <param name="e">Event arguments.</param>
 protected internal void ftpClient_CommandSent(object sender, FTPMessageEventArgs e)
 {
     RaiseCommandSent(e);
 }
 private void Connection_CommandSent(object sender, FTPMessageEventArgs e)
 {
   Log.Debug("ftp:reply:{0}", e.Message);
 }
 private void Connection_ReplyReceived(object sender, FTPMessageEventArgs e)
 {
   Log.Debug("ftp:Cmd  :{0}", e.Message);
 }