79590484

Date: 2025-04-24 11:39:58
Score: 0.5
Natty:
Report link

I figured this could be solved using Delegte Handlers

 protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 {
     if (request.RequestUri != null && request.RequestUri.ToString().Contains("the path to override"))
     {
        //do your thing
     }
    // then forward the request
     return await base.SendAsync(request, cancellationToken);
 }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Praveen Valavan