title: How can I run a method everytime I get a connection?
body: <p>I have a pretty simple ASP.net razor website. How can I run a method/function to, for example, check the IP of a client every time they send my server a request? It has multiple pages, so I can't just put it in the index's <code>OnGet()</code>.</p>