akamsteeg / AtleX.HaveIBeenPwned

A fully async .NET Standard client library for the API of HaveIBeenPwned.com
https://www.nuget.org/packages/AtleX.HaveIBeenPwned/
MIT License
5 stars 0 forks source link

Remove ClientSettings from HaveIBeenPwnedClient #12

Closed akamsteeg closed 5 years ago

akamsteeg commented 5 years ago

Currently, the constructor of HaveIBeenPwnedClient only accepts a ClientSettings object because it needs to pass it on to HttpServiceClient. We can safely remove it from HaveIBeenPwnedClient and if a user wants to override the defaults they can instantiate HttpServiceClient themselves and use constructor injection to pass that client to HaveIBeenWPnedClient.

We should also move ClientSettings to the AtleX.HaveIBeenPwned.Communication.Http namespace and consider renaming it to HttpClientSettings.