Ejemplo n.º 1
0
 static void client_LogServerReply(object sender, LogServerReplyEventArgs args)
 {
     if (_options.logFileTimeStamps)
     {
         _swLog.WriteLine(DateTime.Now.ToString(LOG_DATE_TIME_FORMAT));
     }
     _swLog.WriteLine("{0} {1}", args.ServerReply.Code, args.ServerReply.Message);
 }
Ejemplo 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));
 }
Ejemplo n.º 3
0
 void OnFTPSClientLogServerReply(object sender, LogServerReplyEventArgs args)
 {
     if (FtpServerReply != null)
     {
         FtpServerReply(
             this,
             new LogEventArgs(
                 string.Format(
                     "{0} {1}",
                     args.ServerReply.Code,
                     args.ServerReply.Message)));
     }
 }