fix JitterHandler DI...again
parent
55d242d69f
commit
9cee4f7259
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue