diff --git a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs index 2053724..9f7b5db 100644 --- a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs +++ b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs @@ -25,6 +25,7 @@ builder.Services.AddSqlServer(connectionString); var queueConnectionString = builder.Configuration.GetConnectionString("FeedQueue"); builder.Services.AddSingleton(new QueueClient(queueConnectionString, "feed-queue")); builder.Services.AddHttpClient(); +builder.Services.AddSingleton(); builder.Services.AddHttpClient().AddHttpMessageHandler(); // Authentication and authorization-related services