You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question: should AddStandardResilienceHandler() return IHttpClientBuilder?
works: Services.ConfigureHttpClientDefaults(b => b.AddPolicyHandler(policy).AddHttpMessageHandler<Handler>());
does not work: Services.ConfigureHttpClientDefaults(b => b.AddStandardResilienceHandler().AddHttpMessageHandler<Handler>());
works (order?): Services.ConfigureHttpClientDefaults(b => b .AddHttpMessageHandler<Handler>().AddStandardResilienceHandler());
does not work: Services.AddHttpClient<>().AddStandardResilienceHandler().ConfigureAdditionalHttpMessageHandlers()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question: should
AddStandardResilienceHandler()
returnIHttpClientBuilder
?works:
Services.ConfigureHttpClientDefaults(b => b.AddPolicyHandler(policy).AddHttpMessageHandler<Handler>());
does not work:
Services.ConfigureHttpClientDefaults(b => b.AddStandardResilienceHandler().AddHttpMessageHandler<Handler>());
works (order?):
Services.ConfigureHttpClientDefaults(b => b .AddHttpMessageHandler<Handler>().AddStandardResilienceHandler());
does not work:
Services.AddHttpClient<>().AddStandardResilienceHandler().ConfigureAdditionalHttpMessageHandlers()
Beta Was this translation helpful? Give feedback.
All reactions