public bool Read( string serverUrl, string partitionId, string objectId, out string value, ImmutableVectorClock timestamp, out ImmutableVectorClock replicaTimeStamp) { value = default; replicaTimeStamp = default; try { AdvancedGrpcConnection connection = new AdvancedGrpcConnection(serverUrl); replicaTimeStamp = connection.Read( partitionId, objectId, out value, timestamp); return(true); } catch (RpcException e) { HandleRpcException(serverUrl, e); return(false); } }
public bool ListServer( string serverUrl, out ImmutableList <StoredObject> storedObjects, out ImmutableList <PartitionTimestamp> partitionTimestamps) { storedObjects = default; partitionTimestamps = default; try { AdvancedGrpcConnection connection = new AdvancedGrpcConnection(serverUrl); (storedObjects, partitionTimestamps) = connection.ListServer(); return(true); } catch (RpcException e) { HandleRpcException(serverUrl, e); return(false); } }