You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this is not a breaking change for code compiled against the new version, we have a dependency built against v1.14.1 and using this in a project referencing v1.15.0.
This breaks at runtime with the following exception:
Method not found: 'Void Microsoft.Azure.Documents.Client.DocumentClient..ctor(System.Uri, System.String, Microsoft.Azure.Documents.Client.ConnectionPolicy, System.Nullable`1<Microsoft.Azure.Documents.ConsistencyLevel>)'.
Unfortunately this leaves the sdk a bit stuck, as to keep backwards compatibility a two constructors are needed, one with the original parameters and one with the JsonSerializerSettings parameter.
But this would puts you in a situation where you break current users at compile time.
E.g.
publicDocumentClient(Uri serviceEndpoint, SecureString authKey, ConnectionPolicy connectionPolicy =null, ConsistencyLevel? desiredConsistencyLevel =null)publicDocumentClient(Uri serviceEndpoint, SecureString authKey, ConnectionPolicy connectionPolicy =null, ConsistencyLevel? desiredConsistencyLevel =null, JsonSerializerSettings serializerSettings =null)// this will result in "The call is ambiguous" compile error as both ctors are valid.
var client1 =new DocumentClient(endpoint, key);
We can currently work around this by downgrading our dependency on the Microsoft.Azure.DocumentDB nuget package to v1.14.1 until the upstream dependency has been update to 1.15.0.
The text was updated successfully, but these errors were encountered:
The release notes at docs.microsoft.com mention that support for custom JsonSerializerSettings has been added when instanciating a DocumentClient.
This has been done by adding an extra parameter to the existing constructors for JsonSerializerSettings with a default value.
While this is not a breaking change for code compiled against the new version, we have a dependency built against v1.14.1 and using this in a project referencing v1.15.0.
This breaks at runtime with the following exception:
Unfortunately this leaves the sdk a bit stuck, as to keep backwards compatibility a two constructors are needed, one with the original parameters and one with the JsonSerializerSettings parameter.
But this would puts you in a situation where you break current users at compile time.
E.g.
We can currently work around this by downgrading our dependency on the Microsoft.Azure.DocumentDB nuget package to v1.14.1 until the upstream dependency has been update to 1.15.0.
The text was updated successfully, but these errors were encountered: