public static Task <IMutationResult> AppendAsync(this IBinaryCollection binaryCollection, string id, byte[] value,
                                                         Action <AppendOptions> configureOptions)
        {
            var options = new AppendOptions();

            configureOptions(options);

            return(binaryCollection.AppendAsync(id, value, options));
        }
        public async Task <IMutationResult> AppendAsync(string id, byte[] value, AppendOptions options)
        {
            using (var op = new Append <byte[]>
            {
                Cid = Cid,
                Key = id,
                Content = value,
                DurabilityLevel = options.DurabilityLevel,
                Transcoder = _transcoder
            })
            {
                await _bucket.SendAsync(op, options.Token, options.Timeout);

                return(new MutationResult(op.Cas, null, op.MutationToken));
            }
        }