Exemplo n.º 1
0
 public WebRequestHelper(IServiceItemResult result, Uri url, NetworkSetting networkSetting, WebRequestContentType contentType)
 {
     this.result         = result;
     this.url            = url;
     this.networkSetting = networkSetting;
     this.contentType    = contentType;
 }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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;
 }