Beispiel #1
0
            public void MergeWithTraditionalProperty(TraditionalHttpRequestMessageProperty propertyToMerge)
            {
                if (propertyToMerge.HasMethodBeenSet)
                {
                    this.Method = propertyToMerge.Method;
                }

                if (propertyToMerge.QueryString != TraditionalHttpRequestMessageProperty.DefaultQueryString)
                {
                    this.QueryString = propertyToMerge.QueryString;
                }

                this.SuppressEntityBody = propertyToMerge.SuppressEntityBody;
                this.HttpRequestMessage.MergeWebHeaderCollection(propertyToMerge.Headers);
            }
            public void MergeWithTraditionalProperty(TraditionalHttpRequestMessageProperty propertyToMerge)
            {
                if (propertyToMerge.HasMethodBeenSet)
                {
                    this.Method = propertyToMerge.Method;
                }

                if (propertyToMerge.QueryString != TraditionalHttpRequestMessageProperty.DefaultQueryString)
                {
                    this.QueryString = propertyToMerge.QueryString;
                }

                this.SuppressEntityBody = propertyToMerge.SuppressEntityBody;

                WebHeaderCollection headersToMerge = propertyToMerge.Headers;

                foreach (string headerKey in headersToMerge.AllKeys)
                {
                    this.Headers[headerKey] = headersToMerge[headerKey];
                }
            }
Beispiel #3
0
 internal HttpRequestMessageProperty(WebHeaderCollection originalHeaders)
 {
     _traditionalProperty   = new TraditionalHttpRequestMessageProperty(originalHeaders);
     _useHttpBackedProperty = false;
 }
Beispiel #4
0
 public HttpRequestMessageProperty()
 {
     _traditionalProperty   = new TraditionalHttpRequestMessageProperty();
     _useHttpBackedProperty = false;
 }
            public void MergeWithTraditionalProperty(TraditionalHttpRequestMessageProperty propertyToMerge)
            {
                if (propertyToMerge.HasMethodBeenSet)
                {
                    this.Method = propertyToMerge.Method;
                }

                if (propertyToMerge.QueryString != TraditionalHttpRequestMessageProperty.DefaultQueryString)
                {
                    this.QueryString = propertyToMerge.QueryString;
                }

                this.SuppressEntityBody = propertyToMerge.SuppressEntityBody;
                this.HttpRequestMessage.MergeWebHeaderCollection(propertyToMerge.Headers);
            }
 internal HttpRequestMessageProperty(WebHeaderCollection originalHeaders)
 {
     _traditionalProperty = new TraditionalHttpRequestMessageProperty(originalHeaders);
     _useHttpBackedProperty = false;
 }
 public HttpRequestMessageProperty()
 {
     _traditionalProperty = new TraditionalHttpRequestMessageProperty();
     _useHttpBackedProperty = false;
 }
 internal HttpRequestMessageProperty(IHttpHeaderProvider httpHeaderProvider)
 {
     this.traditionalProperty   = new TraditionalHttpRequestMessageProperty(httpHeaderProvider);
     this.useHttpBackedProperty = false;
 }
            public void MergeWithTraditionalProperty(TraditionalHttpRequestMessageProperty propertyToMerge)
            {
                if (propertyToMerge.HasMethodBeenSet)
                {
                    this.Method = propertyToMerge.Method;
                }

                if (propertyToMerge.QueryString != TraditionalHttpRequestMessageProperty.DefaultQueryString)
                {
                    this.QueryString = propertyToMerge.QueryString;
                }

                this.SuppressEntityBody = propertyToMerge.SuppressEntityBody;

                WebHeaderCollection headersToMerge = propertyToMerge.Headers;
                foreach (string headerKey in headersToMerge.AllKeys)
                {
                    this.Headers[headerKey] = headersToMerge[headerKey];
                }
            }
 internal HttpRequestMessageProperty(IHttpHeaderProvider httpHeaderProvider)
 {
     this.traditionalProperty = new TraditionalHttpRequestMessageProperty(httpHeaderProvider);
     this.useHttpBackedProperty = false;
 }