How to execute custom code when any outgoing HTTP request is initiated in .Net 4.5 console application

75 views Asked by At

I have a c# console application running on .Net 4.5 framework. It has many outgoing HTTP POST and GET calls to various servers. Now I want to log the outgoing requests in my database with some custom code.

The project is already live so I do not want to touch the code of each and every http calls.

Is there any global trigger that I can implement in c# console application in .Net framework 4.5 that will execute on all the outgoing requests?

0

There are 0 answers