Ejemplo n.º 1
0
 public bool WriteTxt(string str)
 {
     try
     {
         WXLOG l = new WXLOG();
         l.CON  = str;
         l.TIME = DateTime.Now;
         // sbo.AddLog(l);
         WriteLogHandler handler = new WriteLogHandler(sbo.AddLog);
         int             result  = handler.Invoke(l);
     }
     catch (Exception)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public static void WriteLog(string log)
 {
     WriteLogHandler?.Invoke(log);
 }
Ejemplo n.º 3
0
 public void WriteLog(string jobId, string message)
 {
     WriteLogHandler?.Invoke(jobId, message);
 }