**What I am trying to achieve** - My application is simply ASP .Net Core application. **It is not Web API.** I want to execute method before every post/get request from my app to external sources, for example:
I am sending a post request, to check SSL expiry date to some website API and it returns me a response. According to the response I am sending another request or not. I don't want to place call method statement before every request, I would like to do it globally. 

I was trying to achieve this based on <http://www.sulhome.com/blog/10/log-asp-net-core-request-and-response-using-middleware>

As it occurs, this middleware works(I have it working) only for internal requests(routing requests inside application). 

Is there any possibility to do it for all requests?

Thanks in advance