public void ApplyTo(StaticFile staticFile, Site site) { var ruleContext = new RuleContext(staticFile, site); block.Invoke(ruleContext); }
public string ApplyTo(StaticFile staticFile, Site site) { var ruleContext = new RuleContext(staticFile, site); return(block.Invoke(ruleContext)); }
public RuleContext(StaticFile staticFile, Site site) { this.staticFile = staticFile; this.item = staticFile.Item; this.site = site; }
public void AddStaticFile(StaticFile staticFile) { staticFiles.Add(staticFile); }