From 9cee4f7259cf1d5b680b48b02743754d77723461 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Thu, 3 Nov 2022 20:21:58 -0500 Subject: [PATCH] fix JitterHandler DI...again --- src/Services/Podcasts/Podcast.MinimalAPI/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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