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); }
public static string Check(C4TryLogicDelegate5 block) { return(NativeHandler.Create().Execute(block)); }