public void Add(Plugin plugin, string templateName, string selector, PluginTemplateSelectorType selectorType, Func <PluginTemplateContext, bool> forCurrentRequest, string modelTarget) { lock (this) { this.Add(new PluginTemplate(plugin, templateName, selector, selectorType, forCurrentRequest, modelTarget)); } }
internal PluginTemplate(Plugin plugin, string templateName, string selector, PluginTemplateSelectorType selectorType, Func <PluginTemplateContext, bool> forCurrentRequest, string modelTarget) { Plugin = plugin; TemplateName = templateName; Selector = selector; SelectorType = selectorType; ForCurrentRequest = forCurrentRequest; ModelTarget = modelTarget; }
public void Add(Plugin plugin, string templateName, string selector, PluginTemplateSelectorType selectorType, Func <PluginTemplateContext, bool> forCurrentRequest) { Add(plugin, templateName, selector, selectorType, forCurrentRequest, ""); }
public void Add(Plugin plugin, string templateName, string selector, PluginTemplateSelectorType selectorType, string pageName, string modelTarget) { Add(plugin, templateName, selector, selectorType, c => string.Compare(c.PageName, pageName, true) == 0, modelTarget); }
public void Add(Plugin plugin, string templateName, string selector, PluginTemplateSelectorType selectorType, string pageName) { Add(plugin, templateName, selector, selectorType, pageName, ""); }
//TODO: (erikpo) Need to add a method to obtain a lock so multiple methods can be called while the items are locked public void Add(Plugin plugin, string templateName, string selector, PluginTemplateSelectorType selectorType) { Add(plugin, templateName, selector, selectorType, c => true); }