Is it possible to create an instance of a class on Application_Startthat can be used in all controllers?
I would like to be able to create, for example:
var globalHelper = new LoadsStuff();
and then in my action methods:
globalHelper.GetInfoFor("key");
The My Helper class loads a fairly large XML file into memory, and I would like to do this only once.
source
share