public RiakResponse<string> FindClientId()
{
var r = Connection.WriteRequestWithoutBody(new byte[] {}, RequestMethod.FindClientId);
return r.ResponseCode == RiakResponseCode.Failed
? RiakResponse<string>.WithErrors(r.Messages)
: RiakResponse<string>.ReadResponse(() => {
var response = Connection.Read<FindClientIdResponse>();
return response.ResponseCode == RiakResponseCode.Failed
? RiakResponse<string>.WithErrors(r.Messages)
: RiakResponse<string>.WithoutErrors(response.Result.ClientId.DecodeToString());
});
}