diff --git a/Selector.CLI/Command/HostCommand.cs b/Selector.CLI/Command/HostCommand.cs index 33d7601..58d086b 100644 --- a/Selector.CLI/Command/HostCommand.cs +++ b/Selector.CLI/Command/HostCommand.cs @@ -71,10 +71,12 @@ namespace Selector.CLI Console.WriteLine("> Configuring..."); // CONFIG var config = ConfigureOptions(context, services); - services.AddHttpClient(); Console.WriteLine("> Adding Services..."); // SERVICES + services.AddHttpClient() + .ConfigureDb(config); + services.AddConsumerFactories(); if (config.RedisOptions.Enabled) { @@ -87,7 +89,6 @@ namespace Selector.CLI .AddSpotify(); services.ConfigureLastFm(config) - .ConfigureDb(config) .ConfigureEqual(config); if (config.RedisOptions.Enabled)