Ejemplo n.º 1
0
 public bool ListServer(
     string serverUrl,
     out ImmutableList <StoredObject> storedObjects)
 {
     storedObjects = default;
     try {
         SimpleKVSConnection connection = new SimpleKVSConnection(serverUrl);
         connection.ListServer(out storedObjects);
         return(true);
     }
     catch (RpcException e) {
         HandleRpcException(serverUrl, e);
         return(false);
     }
 }
Ejemplo n.º 2
0
 public bool Write(
     string serverUrl,
     string partitionId,
     string objectId,
     string objectValue)
 {
     try {
         SimpleKVSConnection connection = new SimpleKVSConnection(serverUrl);
         connection.Write(partitionId, objectId, objectValue);
         return(true);
     }
     catch (RpcException e) {
         HandleRpcException(serverUrl, e);
         return(false);
     }
 }
Ejemplo n.º 3
0
 public bool Read(
     string serverUrl,
     string partitionId,
     string objectId,
     out string objectValue)
 {
     objectValue = default;
     try {
         SimpleKVSConnection connection = new SimpleKVSConnection(serverUrl);
         connection.Read(partitionId, objectId, out objectValue);
         return(true);
     }
     catch (RpcException e) {
         HandleRpcException(serverUrl, e);
         return(false);
     }
 }