Beispiel #1
0
        public HeaderValue(
            XElement element,
            HeaderValueAttributes attributes,
            Extension <IBindingNode> bindingNode)
            : base(element)
        {
            Contract.Requires <ArgumentNullException>(element != null);
            Contract.Requires <ArgumentNullException>(attributes != null);
            Contract.Requires <ArgumentNullException>(bindingNode != null);

            this.attributes   = attributes;
            this.bindingNode  = bindingNode;
            this.valueBinding = new Lazy <Binding>(() => BindingUtil.ForAttribute(attributes.Value));
        }
Beispiel #2
0
        public HeaderValue(
            XElement element,
            HeaderValueAttributes attributes,
            Extension<IBindingNode> bindingNode)
            : base(element)
        {
            Contract.Requires<ArgumentNullException>(element != null);
            Contract.Requires<ArgumentNullException>(attributes != null);
            Contract.Requires<ArgumentNullException>(bindingNode != null);

            this.attributes = attributes;
            this.bindingNode = bindingNode;
            this.valueBinding = new Lazy<Binding>(() => BindingUtil.ForAttribute(attributes.Value));
        }