public static Task UnlockAsync <T>(this ICollection collection, string id, Action <UnlockOptions> configureOptions)
        {
            var options = new UnlockOptions();

            configureOptions(options);

            return(collection.UnlockAsync <T>(id, options));
        }
        public static Task UnlockAsync(this ICouchbaseCollection collection, string id, ulong cas, Action <UnlockOptions> configureOptions)
        {
            var options = new UnlockOptions();

            configureOptions(options);

            return(collection.UnlockAsync(id, cas, options));
        }
 public async Task UnlockAsync <T>(string id, UnlockOptions options)
 {
     using (var unlockOp = new Unlock
     {
         Key = id,
         Cid = Cid,
         Cas = options.Cas,
         Transcoder = _transcoder
     })
     {
         await _bucket.SendAsync(unlockOp, options.Token, options.Timeout).ConfigureAwait(false);
     }
 }