public RiakResponse<bool> Detach(RiakDetachRequest request) { var connection = _connectionManager.GetNextConnection(); var r = connection.WriteWith(request.ProxyRequest(), RequestMethod.Detach); return r.ResponseCode == RiakResponseCode.Failed ? RiakResponse<bool>.WithErrors(false, r.Messages) : RiakResponse<bool>.WithoutErrors(true); }
public RiakResponse<bool> Detach(Action<RiakDetachRequest> predicate) { var request = new RiakDetachRequest(); predicate(request); return Detach(request); }