diff --git a/src/console/console.csproj b/src/console/console.csproj index b99d9b4d3..a8ab467cf 100644 --- a/src/console/console.csproj +++ b/src/console/console.csproj @@ -39,9 +39,9 @@ False ..\packages\Newtonsoft.Json.5.0.6\lib\net40\Newtonsoft.Json.dll - + False - ..\packages\SimpleRESTServices.1.1.2.0\lib\net40\SimpleRESTServices.dll + ..\packages\SimpleRESTServices.1.1.3.0\lib\net40\SimpleRESTServices.dll diff --git a/src/console/packages.config b/src/console/packages.config index 2100dfa6d..4467c0394 100644 --- a/src/console/packages.config +++ b/src/console/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/src/corelib/Providers/Rackspace/ProviderBase`1.cs b/src/corelib/Providers/Rackspace/ProviderBase`1.cs index c1caf012f..a68ff747f 100644 --- a/src/corelib/Providers/Rackspace/ProviderBase`1.cs +++ b/src/corelib/Providers/Rackspace/ProviderBase`1.cs @@ -46,6 +46,11 @@ public abstract class ProviderBase /// protected readonly IHttpResponseCodeValidator ResponseCodeValidator; + /// + /// This is the backing field for . + /// + private int? _connectionLimit; + /// /// Initializes a new instance of the class using /// the specified default identity, identity provider, and REST service implementation, @@ -73,6 +78,28 @@ protected ProviderBase(CloudIdentity defaultIdentity, IIdentityProvider identit ResponseCodeValidator = httpStatusCodeValidator ?? HttpResponseCodeValidator.Default; } + /// + /// Gets or sets the maximum number of connections allowed on the + /// objects used for requests. If the value is null, the connection limit value for the + /// object is not altered. + /// + /// If is less than or equal to 0. + public int? ConnectionLimit + { + get + { + return _connectionLimit; + } + + set + { + if (value <= 0) + throw new ArgumentOutOfRangeException("value"); + + _connectionLimit = value; + } + } + /// /// Execute a REST request with an body and strongly-typed result. /// @@ -469,7 +496,14 @@ protected virtual RequestSettings BuildDefaultRequestSettings(IEnumerable diff --git a/src/corelib/corelib.csproj b/src/corelib/corelib.csproj index ce2757fee..0872d9725 100644 --- a/src/corelib/corelib.csproj +++ b/src/corelib/corelib.csproj @@ -38,9 +38,9 @@ False ..\packages\Newtonsoft.Json.5.0.6\lib\net40\Newtonsoft.Json.dll - + False - ..\packages\SimpleRESTServices.1.1.2.0\lib\net40\SimpleRESTServices.dll + ..\packages\SimpleRESTServices.1.1.3.0\lib\net40\SimpleRESTServices.dll diff --git a/src/corelib/packages.config b/src/corelib/packages.config index 2100dfa6d..4467c0394 100644 --- a/src/corelib/packages.config +++ b/src/corelib/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/src/packages/SimpleRESTServices.1.1.2.0/lib/net40/SimpleRESTServices.dll b/src/packages/SimpleRESTServices.1.1.2.0/lib/net40/SimpleRESTServices.dll deleted file mode 100644 index 009ed781c..000000000 Binary files a/src/packages/SimpleRESTServices.1.1.2.0/lib/net40/SimpleRESTServices.dll and /dev/null differ diff --git a/src/packages/SimpleRESTServices.1.1.2.0/SimpleRESTServices.1.1.2.0.nuspec b/src/packages/SimpleRESTServices.1.1.3.0/SimpleRESTServices.1.1.3.0.nuspec similarity index 93% rename from src/packages/SimpleRESTServices.1.1.2.0/SimpleRESTServices.1.1.2.0.nuspec rename to src/packages/SimpleRESTServices.1.1.3.0/SimpleRESTServices.1.1.3.0.nuspec index 92df2c937..aca1d4910 100644 --- a/src/packages/SimpleRESTServices.1.1.2.0/SimpleRESTServices.1.1.2.0.nuspec +++ b/src/packages/SimpleRESTServices.1.1.3.0/SimpleRESTServices.1.1.3.0.nuspec @@ -2,7 +2,7 @@ SimpleRESTServices - 1.1.2.0 + 1.1.3.0 SimpleRESTServices Alan Quillin Alan Quillin @@ -10,7 +10,7 @@ https://github.com/JSIStudios/SimpleRestServices true A simple set of client side and server side REST helpers - https://github.com/JSIStudios/SimpleRestServices/wiki/v1.1.2.0 + https://github.com/JSIStudios/SimpleRestServices/wiki/v1.1.3.0 Copyright © JSI Studios 2013 REST REST_client diff --git a/src/packages/SimpleRESTServices.1.1.3.0/lib/net40/SimpleRESTServices.dll b/src/packages/SimpleRESTServices.1.1.3.0/lib/net40/SimpleRESTServices.dll new file mode 100644 index 000000000..9c02484cc Binary files /dev/null and b/src/packages/SimpleRESTServices.1.1.3.0/lib/net40/SimpleRESTServices.dll differ diff --git a/src/packages/SimpleRESTServices.1.1.2.0/lib/net40/SimpleRESTServices.xml b/src/packages/SimpleRESTServices.1.1.3.0/lib/net40/SimpleRESTServices.xml similarity index 96% rename from src/packages/SimpleRESTServices.1.1.2.0/lib/net40/SimpleRESTServices.xml rename to src/packages/SimpleRESTServices.1.1.3.0/lib/net40/SimpleRESTServices.xml index b95b348dc..9f8fea793 100644 --- a/src/packages/SimpleRESTServices.1.1.2.0/lib/net40/SimpleRESTServices.xml +++ b/src/packages/SimpleRESTServices.1.1.3.0/lib/net40/SimpleRESTServices.xml @@ -687,6 +687,13 @@ Internet resource. + + + Gets or sets the maximum number of connections allowed on the object + used for the request. If the value is null, the connection limit value for the + object is not altered. + + Gets or sets the value of the Content-Length HTTP header. @@ -1830,93 +1837,6 @@ Gets the default to use for requests sent from this service. - - - Executes a REST request with a string and user-defined - callback function for constructing the resulting object. - - The base URI. - The HTTP method to use for the request. - A user-specified function used to construct the resulting - object from the and a Boolean value specifying whether or not a - was thrown during the request. If this value is null, this method is equivalent to calling - . - The body of the request. If the value is null, the request is sent without a body. - - A collection of custom HTTP headers to include with the request. If the value is - null, no custom headers are added to the HTTP request. - - - A collection of parameters to add to the query string portion of the request URI. - If the value is null, no parameters are added to the query string. - - - The settings to use for the request. If the value is null, an implementation-specific - set of default settings will be used for the request. - - Returns a object containing the HTTP status code, headers, - and body from the REST response. - If is null. - If is not supported by the service. - - - - Executes a REST request with a - and user-defined callback function for constructing the resulting - object. - - The base URI. - The HTTP method to use for the request. - A user-specified function used to construct the resulting - object from the and a Boolean value specifying whether or not a - was thrown during the request. If this value is null, this method is equivalent to calling - . - A stream providing the body of the request. - - The size of the buffer used for copying data from to the - HTTP request stream. - - - The maximum number of bytes to send with the request. This parameter is optional. - If the value is 0, the request will include all data from . - - - A collection of custom HTTP headers to include with the request. This parameter is - optional. If the value is null, no custom headers are added to the HTTP request. - - - A collection of parameters to add to the query string portion of the request URI. - This parameter is optional. If the value is null, no parameters are added - to the query string. - - - The settings to use for the request. This parameters is optional. If the value is - null, an implementation-specific set of default settings will be used for the request. - - - A user-defined callback function for reporting progress of the send operation. - This parameter is optional. If the value is null, the method does not report - progress updates to the caller. - - - - - param - contents - M:JSIStudios.SimpleRESTServices.Client.Json.JsonRestServices.Stream(System.Uri,JSIStudios.SimpleRESTServices.Client.HttpMethod,System.Func{System.Net.HttpWebResponse,System.Boolean,JSIStudios.SimpleRESTServices.Client.Response},System.IO.Stream,System.Int32,System.Int64,System.Collections.Generic.Dictionary{System.String,System.String},System.Collections.Generic.Dictionary{System.String,System.String},JSIStudios.SimpleRESTServices.Client.RequestSettings,System.Action{System.Int64}) - - - - Returns a object containing the HTTP status code, headers, - and body from the REST response. - - If is null. - -or-If is null. - - If is less than or equal to zero. - -or-If is less than zero. - If is not supported by the service. - Provides a default implementation of using JSON for diff --git a/src/testing/integration/integration.csproj b/src/testing/integration/integration.csproj index 0d03a3019..4b5262f30 100644 --- a/src/testing/integration/integration.csproj +++ b/src/testing/integration/integration.csproj @@ -45,9 +45,9 @@ False ..\..\packages\SSH.NET.2013.4.7\lib\net40\Renci.SshNet.dll - + False - ..\..\packages\SimpleRESTServices.1.1.2.0\lib\net40\SimpleRESTServices.dll + ..\..\packages\SimpleRESTServices.1.1.3.0\lib\net40\SimpleRESTServices.dll diff --git a/src/testing/integration/packages.config b/src/testing/integration/packages.config index d7c1c4f57..a3ad86567 100644 --- a/src/testing/integration/packages.config +++ b/src/testing/integration/packages.config @@ -2,6 +2,6 @@ - + \ No newline at end of file diff --git a/src/testing/unit/packages.config b/src/testing/unit/packages.config index a06bd41c9..c32627076 100644 --- a/src/testing/unit/packages.config +++ b/src/testing/unit/packages.config @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/src/testing/unit/unit.csproj b/src/testing/unit/unit.csproj index 42db46cc5..d9243e3d9 100644 --- a/src/testing/unit/unit.csproj +++ b/src/testing/unit/unit.csproj @@ -41,9 +41,9 @@ False ..\..\packages\Newtonsoft.Json.5.0.6\lib\net40\Newtonsoft.Json.dll - + False - ..\..\packages\SimpleRESTServices.1.1.2.0\lib\net40\SimpleRESTServices.dll + ..\..\packages\SimpleRESTServices.1.1.3.0\lib\net40\SimpleRESTServices.dll