Пример #1
0
 void OnFTPSClientLogServerReply(object sender, LogServerReplyEventArgs args)
 {
     if (FtpServerReply != null)
     {
         FtpServerReply(
             this,
             new LogEventArgs(
                 string.Format(
                     "{0} {1}",
                     args.ServerReply.Code,
                     args.ServerReply.Message)));
     }
 }
Пример #2
0
 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));
 }