I’d like to instantiate a class when I start the application and then use that object in every class (custom ValidationAttributes, controllers, etc).
Where should I instantiate that class to have access to it everywhere?
I’m using ASP.NET MVC with C#.
You could make it a static property of the MvcApplication class (global.asax), and instantiate it in Application_Start.