HalClient.Net icon indicating copy to clipboard operation
HalClient.Net copied to clipboard

Improve the API specific client support

Open wis3guy opened this issue 10 years ago • 0 comments

Right now you can use an override/implementation of the Decorate method to return a custom client type. This works, but the factory will always yield an IHalHttpClient instance. You can only expose custom methods on it by creating extension methods. While this works great in most cases, it falls apart when a consumer has to communicate with multiple HAL based API's and thus uses multiple both decorated and non-decorated clients. Extensions methods are bound to the interface, and will thus be bound to all instantiated clients.

wis3guy avatar Jan 15 '16 08:01 wis3guy