private ErrorCode WalletFetchSearchNextRecordHandler(int storage_handle, int search_handle, ref int record_handle_p) { try { record_handle_p = _storage.FetchSearchNextRecordAsync(storage_handle, search_handle).GetAwaiter() .GetResult(); return(ErrorCode.Success); } catch { return(ErrorCode.WalletItemNotFoundError); } }