diff --git a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs index 9f7b5db..531660a 100644 --- a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs +++ b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs @@ -25,7 +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.AddTransient(); builder.Services.AddHttpClient().AddHttpMessageHandler(); // Authentication and authorization-related services