Details
Description
Insert picks up serialization settings from the client configuration, but Upsert does not. I do not know if there are other operations that do not pick up the serialization settings. An example:
using (var cluster = new Cluster(new ClientConfiguration
{
SerializationSettings = new JsonSerializerSettings
DeserializationSettings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Objects }
}))
{
using (var bucket = cluster.OpenBucket())
{
bucket.Insert("testOk", new Entity
);
bucket.Upsert("testFail", new Entity
);
}
}
}