Skip to content

Commit

Permalink
Merge pull request OfficeDev#491 from SebastianWe/master
Browse files Browse the repository at this point in the history
Added pooling for ServiceRequestBase
  • Loading branch information
serious6 committed Mar 19, 2016
2 parents 5461fdd + 059288b commit 61b3fe1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -889,4 +889,8 @@ public static byte[] getSessionKey() {
return ExchangeServiceBase.binarySecret;
}
}

public int getMaximumPoolingConnections() {
return maximumPoolingConnections;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,13 @@ protected SoapFaultDetails readSoapFault(EwsServiceXmlReader reader) {
protected HttpWebRequest validateAndEmitRequest() throws Exception {
this.validate();

HttpWebRequest request = this.buildEwsHttpWebRequest();
HttpWebRequest request;

if (service.getMaximumPoolingConnections() > 1) {
request = buildEwsHttpPoolingWebRequest();
} else {
request = buildEwsHttpWebRequest();
}

try {
try {
Expand Down

0 comments on commit 61b3fe1

Please sign in to comment.