79120302

Date: 2024-10-24 03:55:47
Score: 2
Natty:
Report link

Either register CustomHttpRequestHandler as transient

services.AddTransient<CustomHttpRequestHandler>();

or just simply returns a new instance

AddHttpMessageHandler(() => return new CustomHttpRequestHandler())

Here is a reference: Your custom HttpClient delegating handlers should be transient

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: eric jiang