If you use InsertAsync (haven't tried with Upsert or others) with byte[] content without specifying the legacy encoder, you the request never hits the wire and the operation eventually fails with a timeout.
[Fact]
|
public async Task Can_insert_byte_array_with_default_transcoder()
|
{
|
var collection = await _fixture.GetDefaultCollection().ConfigureAwait(false);
|
var key = Guid.NewGuid().ToString();
|
await collection
|
.InsertAsync(key, Encoding.UTF8.GetBytes("hello"), options => options.Expiry(TimeSpan.FromSeconds(30)))
|
.ConfigureAwait(false);
|
using var result = await collection.GetAsync(key, options => options.Transcoder(new LegacyTranscoder()))
|
.ConfigureAwait(false);
|
}
|
|