예제 #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];
                }
            }
예제 #3
0
 internal HttpRequestMessageProperty(WebHeaderCollection originalHeaders)
 {
     _traditionalProperty   = new TraditionalHttpRequestMessageProperty(originalHeaders);
     _useHttpBackedProperty = false;
 }
예제 #4
0
 public HttpRequestMessageProperty()
 {
     _traditionalProperty   = new TraditionalHttpRequestMessageProperty();
     _useHttpBackedProperty = false;
 }
예제 #5
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);
            }
예제 #6
0
 internal HttpRequestMessageProperty(WebHeaderCollection originalHeaders)
 {
     _traditionalProperty = new TraditionalHttpRequestMessageProperty(originalHeaders);
     _useHttpBackedProperty = false;
 }
예제 #7
0
 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;
 }