Ejemplo n.º 1
0
        public unsafe string Execute(C4TryLogicDelegate5 block)
        {
            Debug.Assert(block != null);

            C4Error err;
            var     retVal = block(&err);

            if (retVal != null || err.code == 0)
            {
                Exception = null;
                return(retVal);
            }

            Exception = CouchbaseException.Create(err);
            ThrowOrHandle();
            return(retVal);
        }
Ejemplo n.º 2
0
 public static string Check(C4TryLogicDelegate5 block)
 {
     return(NativeHandler.Create().Execute(block));
 }