Exemple #1
0
        public void ApplyTo(StaticFile staticFile, Site site)
        {
            var ruleContext = new RuleContext(staticFile, site);

            block.Invoke(ruleContext);
        }
Exemple #2
0
        public string ApplyTo(StaticFile staticFile, Site site)
        {
            var ruleContext = new RuleContext(staticFile, site);

            return(block.Invoke(ruleContext));
        }
Exemple #3
0
 public RuleContext(StaticFile staticFile, Site site)
 {
     this.staticFile = staticFile;
     this.item       = staticFile.Item;
     this.site       = site;
 }
Exemple #4
0
 public void AddStaticFile(StaticFile staticFile)
 {
     staticFiles.Add(staticFile);
 }