public Task <IMutationResult> Append(string id, byte[] value, Action <AppendOptions> configureOptions) { var options = new AppendOptions(); configureOptions(options); return(Append(id, value, options)); }
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 }) { await ExecuteOp(op, options.Token, options.Timeout); return(new MutationResult(op.Cas, null, op.MutationToken)); } }