Exemple #1
0
 public void Activate(IEnumerable <IPackageInfo> packages, IPackageLog log)
 {
     _jobs.Where(x => x.ScheduledExecution != ScheduledExecution.Disabled).Each(x => {
         try
         {
             log.Trace("Starting " + x.JobType.GetFullName());
             x.Start();
         }
         catch (Exception ex)
         {
             log.MarkFailure(ex);
         }
     });
 }
Exemple #2
0
 public void Activate(IActivationLog log, IPerfTimer timer)
 {
     _jobs.Where(x => x.ScheduledExecution != ScheduledExecution.Disabled).Each(x => {
         try
         {
             log.Trace("Starting " + x.JobType.GetFullName());
             x.Start();
         }
         catch (Exception ex)
         {
             log.MarkFailure(ex);
         }
     });
 }
Exemple #3
0
        public void Activate(IActivationLog log, IPerfTimer timer)
        {
            _jobs.Where(x => x.ScheduledExecution != ScheduledExecution.Disabled).Each(x => {
                try
                {
                    log.Trace($"Starting {x.JobType.GetFullName()} on node {_channels.NodeId}");
                    Debug.WriteLine($"Starting {x.JobType.GetFullName()} on node {_channels.NodeId}");

                    x.Start();
                }
                catch (Exception ex)
                {
                    log.MarkFailure(ex);
                }
            });
        }