public void OnSuccess(Key key)
 {
     try
     {
         // Write succeeded.  Now call read.
         client.Get(null, new RecordHandler(parent, key, bin), key);
     }
     catch (Exception e)
     {
         parent.SetError(e);
         parent.NotifyCompleted();
     }
 }
 public void OnFailure(AerospikeException e)
 {
     parent.SetError(e);
     parent.NotifyCompleted();
 }