public void Activate(IEnumerable<IPackageInfo> packages, IPackageLog log) { _templates.AllTemplates().Each(t => { var context = new AttachRequest { Template = t, Logger = SparkLogger.Default() }; _attachers.Where(a => a.CanAttach(context)).Each(a => a.Attach(context)); }); }
public void Activate(IEnumerable <IPackageInfo> packages, IPackageLog log) { _templates.AllTemplates().Each(t => { var context = new AttachRequest { Template = t, Logger = SparkLogger.Default() }; _attachers.Where(a => a.CanAttach(context)).Each(a => a.Attach(context)); }); }