fix JitterHandler DI...again

pull/178/head
Chet Husk 2022-11-03 20:21:58 -05:00
parent 55d242d69f
commit 9cee4f7259
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ builder.Services.AddSqlServer<PodcastDbContext>(connectionString);
var queueConnectionString = builder.Configuration.GetConnectionString("FeedQueue");
builder.Services.AddSingleton(new QueueClient(queueConnectionString, "feed-queue"));
builder.Services.AddHttpClient<IFeedClient, FeedClient>();
builder.Services.AddSingleton<JitterHandler>();
builder.Services.AddTransient<JitterHandler>();
builder.Services.AddHttpClient<ShowClient>().AddHttpMessageHandler<JitterHandler>();
// Authentication and authorization-related services