wis3guy / HalClient.Net

A library that simplifies interaction with API's that respond with the "application\hal+json" media type.
Microsoft Public License
19 stars 21 forks source link

No 'ApiRootResourceCachingBehavior' option on IHalHttpClientConfiguration #17

Closed Not-That-Guy closed 7 years ago

Not-That-Guy commented 7 years ago

Documentation talks about a 'ApiRootResourceCachingBehavior' option to configure all IHalHttpClient instances, but I can't actually set this option in code.

Nothing on the class HalHttpClientConfiguration matching this option. Searching the source and it only turns up in the readme document.

I assume this is redundant and the caching is configured: using (var client = await factory.CreateClientAsync(CachingBehavior.PerClient)) { // client.CachedApiRootResource is set to a parsed IRootResourceObject instance }

wis3guy commented 7 years ago

@Not-That-Guy You are absolutely correct. The documentation was out of sync with the source code. Realize that the caching of the root resource is something to be handled by the factory and was thus removed form the client specific configuration class in favor of the factory method's argument.