void OnFTPSClientLogServerReply(object sender, LogServerReplyEventArgs args) { if (FtpServerReply != null) { FtpServerReply( this, new LogEventArgs( string.Format( "{0} {1}", args.ServerReply.Code, args.ServerReply.Message))); } }
static void client_LogServerReply(object sender, LogServerReplyEventArgs args) { if (options.logFileTimeStamps) swLog.WriteLine(DateTime.Now.ToString(logDateTimeFormat)); swLog.WriteLine(string.Format("{0} {1}", args.ServerReply.Code, args.ServerReply.Message)); }