The library correctly sets HttpClient BaseAddress property, however BuildEndpointUrl returns a path starting with slash. .NET HttpClient then treats the endpoint url as an absolute path resulting in the path segment of the BaseAddress property to be ignored. Related SO answer: https://stackoverflow.com/a/23438417
The BuildEndpointUrl should return a string without a leading slash.