Exemplo n.º 1
0
        public virtual void ExceptWith(HtmlResources resources)
        {
            Assert.ArgumentNotNull(resources, "resources");

            this.CssUrls.ExceptWith(resources.CssUrls);
            this.ScriptUrls.ExceptWith(resources.ScriptUrls);
        }
Exemplo n.º 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();
        }
Exemplo n.º 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);
            }
        }