BeforeSendReply Event
Notifies the application of a command reply being sent.
Syntax
public event OnBeforeSendReplyHandler OnBeforeSendReply; public delegate void OnBeforeSendReplyHandler(object sender, FtpserverBeforeSendReplyEventArgs e); public class FtpserverBeforeSendReplyEventArgs : EventArgs { public long ConnectionID { get; } public int Code { get; set; } public string Reply { get; set; } public string Command { get; } }
Public Event OnBeforeSendReply As OnBeforeSendReplyHandler Public Delegate Sub OnBeforeSendReplyHandler(sender As Object, e As FtpserverBeforeSendReplyEventArgs) Public Class FtpserverBeforeSendReplyEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public Property Code As Integer Public Property Reply As String Public ReadOnly Property Command As String End Class
Remarks
The component fires this event to tell the application that a command reply is about to be sent. The Command parameter indicates the command that induced the reply, and Code and Reply indicate the pre-generated response.
You can alter the response parameters in your code to send bespoke replies.