Esempio n. 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)));
     }
 }
Esempio n. 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));
 }