Update threading model for company profile
This commit is contained in:
@@ -1143,10 +1143,6 @@ namespace MarketData.Integration
|
||||
int charCount = 0;
|
||||
byte[] buffer = new byte[8192];
|
||||
StringBuilder sb = new StringBuilder();
|
||||
// bool expect100Condition = ServicePointManager.Expect100Continue;
|
||||
// SecurityProtocolType securityProtocolType = ServicePointManager.SecurityProtocol;
|
||||
// ServicePointManager.Expect100Continue = true;
|
||||
// ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(new Uri(strRequest));
|
||||
if(null!=webProxy)webRequest.Proxy=webProxy;
|
||||
webRequest.Timeout = webRequestTimeoutMS;
|
||||
@@ -1177,8 +1173,6 @@ namespace MarketData.Integration
|
||||
if (0 == charCount) break;
|
||||
sb.Append(Encoding.ASCII.GetString(buffer, 0, charCount));
|
||||
}
|
||||
// ServicePointManager.Expect100Continue = expect100Condition;
|
||||
// ServicePointManager.SecurityProtocol = securityProtocolType;
|
||||
return new HttpNetResponse(sb.ToString(), strRequest, webResponse, webResponse.Cookies, true);
|
||||
}
|
||||
catch (WebException webException)
|
||||
|
||||
Reference in New Issue
Block a user