5 Commits (552e70a9377d5050c5b7eebd2e79fc81a672d0d4)

Author SHA1 Message Date
  emorell96 552e70a937 modified the extension methods to not use the HttpClientFactoryRestClientProvider since it's unnecessary, I can just use a delegate in the the config pointing to the HttpClientFactoryRestClient. 5 years ago
  emorell96 8137ca1eca added documentation to this method. 5 years ago
  emorell96 67ace364a4 changed AddTransient to AddScoped when adding HttpClientFactoryRestClientProvider as a service in the AddScopedDiscordRestClient to stay consistent. AddScopedDiscordRestClient adds scoped services, AddTransientDiscordRestClient adds transient services. 5 years ago
  emorell96 1c31bc8abe renamed names to follow convention HttpClientFactory + RestClient or RestClientProvider. 5 years ago
  emorell96 b745a3cd6d Added two Extension methods "AddScopedDiscordRestClient" and "AddTransientDiscordRestClient" to allow for easier addition of scoped, and transient DiscordRestClients, it's left up to the user which one is more convenient to use for his/her application, and at the end of the day it doesn't risk running out of sockets since it uses IHttpClientFactory under the hood. 5 years ago