NCBC-607: NRE in SslConnection when sending operation

Change-Id: Ic6be2ad9861f1d366610311a0d6c02ed4b554819
Reviewed-on: http://review.couchbase.org/40982
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Ensure old servers list is empty after reconfig

Change-Id: Id9348576ebe96fe94b00195f5dca2e9a3a122dcb
Reviewed-on: http://review.couchbase.org/41097
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-613: Refactor operation result classes...

Change-Id: I66dfb4e25e2b9e4af4b77adda1eb5506014db173
Reviewed-on: http://review.couchbase.org/41085
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-610: fix bug in SSL refactoring

Change-Id: Ic9532583efe97ac7f2202d8452763e3e4a876356
Reviewed-on: http://review.couchbase.org/41064
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-617: End operation when EndRead returns zero in SslConnection.

Change-Id: Id90d02312636f410d0b78c9fec80705c0fdc42b7
Reviewed-on: http://review.couchbase.org/41124
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Missing file and proj references

Change-Id: I00c5bd79ddafaa94ce43064024e38a094a47d28b
Reviewed-on: http://review.couchbase.org/41127
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-618: When bootstrapping against a cluster with a node down cccp fails

Change-Id: I7ce4e490efee02496cf809f4fab64d9200e47b7d
Reviewed-on: http://review.couchbase.org/41126
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Adding missing code docs

Change-Id: I732fd58e514682e0514130fe11e6bd47430e38d2
Reviewed-on: http://review.couchbase.org/41154
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
NCBC-579: Make unsupported memcached methods throw NotSupportedException

Change-Id: I2a90ffef1ef612195aa19632d2b561a958944e20
Reviewed-on: http://review.couchbase.org/41156
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
NCBC-627: Create nuspec file for 2.0 SDK

Change-Id: Ib54f3d882b12c6b826053b84cc1ef4988c614263
Reviewed-on: http://review.couchbase.org/41259
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
NCBC-631: TypeSerializer swallows exceptions making it difficult to debug serialization/transcoding errors.

Change-Id: I8f6caa937cb4eb1f8a19013b84a4626df3ddce37
Reviewed-on: http://review.couchbase.org/41270
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
NCBC-633: Make TypeSerializer use ToArray instead of GetBuffer

GetBuffer returns the entire buffer whether it was written to or not; this
causes issues with the server side translation of JSON turing it into a
binary blob. ToArray only takes the portion of the buffer that has been written to.

Change-Id: I72f61758b61113a3a249f793f8fa0b9535dc68d9
Reviewed-on: http://review.couchbase.org/41284
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-626: HttpRequestException in queries after rebalance out

Change-Id: I0eed00d956f231c3826a54da6a983586618d126d
Reviewed-on: http://review.couchbase.org/41327
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-632: Make JsonSerializerSettings configurable

Change-Id: I21c5620a2192217faa68a62cf440a2a8f3dc8893
Reviewed-on: http://review.couchbase.org/41331
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-634: Ensure that CancellationTokenSource is Disposed

This fix ensures that the CTS will be explicitly disposed so that the
object does not live through to finalization.

Change-Id: I39545b97a3c934f2c0a93587fa7147b32d2bd043
Reviewed-on: http://review.couchbase.org/41335
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-635: Provide better failure support for N1QL Query API

Change-Id: I16d9a44ba653f8846b22e7c679681ab262e1e6bc
Reviewed-on: http://review.couchbase.org/41351
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Jeffry Morris <jeffrymorris@gmail.com>
NCBC-636: Make outgoing ContractResolver default to camel casing

This commit makes the incoming and outgoing JSON IContractResolver's type
configurable from the ClientConfiguration object. The default settings are
to use a CamelCasedNameContractResolver for both serialization and
deserilization.

Change-Id: I3a82f95d5f4608aa8d05e4141a1a089bc300d4e7
Reviewed-on: http://review.couchbase.org/41353
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
NCBC-586: Make AddRef and Release on IBucket not public

This commit adds an internal interface IRefCountable with AddRef and
Release members, so that the two methods are not publically callable on an
IBucket implementation.

Change-Id: I11f628094aa1f65ff4780f42e00bbfb088e78898
Reviewed-on: http://review.couchbase.org/41354
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
NCBC-637: When CCCP fails ensure NRE is not thrown

Change-Id: I5ef0dbef8298675ceb92e9eb91c49303269133a2
Reviewed-on: http://review.couchbase.org/41371
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Update unit tests to use camel cased property values when applicable

Change-Id: I80ae31e2bf58809574dba965063b21ffe48dc5ec
Reviewed-on: http://review.couchbase.org/41373
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>