Пример #1
0
        public virtual void ExceptWith(HtmlResources resources)
        {
            Assert.ArgumentNotNull(resources, "resources");

            this.CssUrls.ExceptWith(resources.CssUrls);
            this.ScriptUrls.ExceptWith(resources.ScriptUrls);
        }
Пример #2
0
        public HtmlResourcesContext(HttpContextBase httpContext, string contextKey, HtmlResources resources = null)
        {
            Assert.ArgumentNotNull(httpContext, "httpContext");
            Assert.ArgumentNotNullOrEmpty(contextKey, "contextItems");

            this.HttpContext = httpContext;
            this.ContextKey  = contextKey;
            this.Resources   = resources ?? new HtmlResources();
        }
Пример #3
0
        public virtual void UnionWith(HtmlResources resources)
        {
            Assert.ArgumentNotNull(resources, "resources");

            this.CssUrls.UnionWith(resources.CssUrls);
            this.ScriptUrls.UnionWith(resources.ScriptUrls);

            foreach (string htmlBlock in resources.HtmlBlocks)
            {
                this.HtmlBlocks.Add(htmlBlock);
            }
        }