public WebRequestHelper(IServiceItemResult result, Uri url, NetworkSetting networkSetting, WebRequestContentType contentType)
 {
     this.result         = result;
     this.url            = url;
     this.networkSetting = networkSetting;
     this.contentType    = contentType;
 }
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (postData != null)
                {
                    postData.Close();
                    postData = null;
                }

                if (postXmlData != null)
                {
                    postXmlData.Close();
                    postXmlData = null;
                }

                if (postStream != null)
                {
                    postStream.Dispose();
                    postStream = null;
                }

                result         = null;
                url            = null;
                networkSetting = null;
            }
        }
        protected virtual void Dispose(bool disposing)
        {
            if(disposing)
            {
                if(postData != null)
                {
                    postData.Close();
                    postData = null;
                }

                if(postXmlData != null)
                {
                    postXmlData.Close();
                    postXmlData = null;
                }

                if(postStream != null)
                {
                    postStream.Dispose();
                    postStream = null;
                }

                result = null;
                url = null;
                networkSetting = null;
            }
        }
 public WebRequestHelper(IServiceItemResult result, Uri url, NetworkSetting networkSetting, WebRequestContentType contentType, bool gzipRequest)
 {
     this.result = result;
     this.url = url;
     this.networkSetting = networkSetting;
     this.contentType = contentType;
     this.gZipRequest = gzipRequest;
 }
 public WebRequestHelper(IServiceItemResult result, Uri url, NetworkSetting networkSetting, WebRequestContentType contentType, Encoding encoding)
 {
     this.result = result;
     this.url = url;
     this.networkSetting = networkSetting;
     this.contentType = contentType;
     this.encoding = encoding;
 }