CommandProcessed Event
Signals that a command has been processed by the server.
Syntax
public event OnCommandProcessedHandler OnCommandProcessed; public delegate void OnCommandProcessedHandler(object sender, FtpserverCommandProcessedEventArgs e); public class FtpserverCommandProcessedEventArgs : EventArgs { public long ConnectionID { get; } public string CurrentDirectory { get; } public string Command { get; } public int ReplyCode { get; } }
Public Event OnCommandProcessed As OnCommandProcessedHandler Public Delegate Sub OnCommandProcessedHandler(sender As Object, e As FtpserverCommandProcessedEventArgs) Public Class FtpserverCommandProcessedEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property CurrentDirectory As String Public ReadOnly Property Command As String Public ReadOnly Property ReplyCode As Integer End Class
Remarks
The component fires this event to signal that a command has been processed by the server, and a reply code has been generated.
You can adjust the reply code and the textual comment associated with it in BeforeSendReply event handler.