Sometimes we need to call a function every time we get an instance of a controller (someone say constructor?).
However, the constructor has a bad limitation about the operations it can do. The HttpContext object isn’t initialized.
Let’s take a scenario. We had a cookie that needs be readed and initialized every time.
Continue reading “A base event for ASP .NET CORE controllers”