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); } }); }
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); } }); }
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); } }); }