Ejemplo n.º 1
0
 public bool Execute(string subject, IQueueTools tools, IOutput log)
 {
     try
     {
         int copied = tools.Transfer(subject, _opts.Destination, null, false, false);
         log.Out(subject + " copied to " + _opts.Destination + " (" + copied + " messages)");
         return(true);
     }
     catch (Exception ex)
     {
         log.Error(ex.Message);
         return(false);
     }
 }
Ejemplo n.º 2
0
Archivo: QCp.cs Proyecto: jondot/qtools
 public bool Execute(string subject, IQueueTools tools, IOutput log)
 {
     try
     {
         int copied = tools.Transfer(subject, _opts.Destination, null, false, false);
         log.Out(subject + " copied to " + _opts.Destination + " ("+ copied +" messages)");
         return true;
     }
     catch (Exception ex)
     {
         log.Error(ex.Message);
         return false;
     }
 }