I do not know about your particular issue....
But you could use static constructor to run that code only once perhaps?
Not sure it's a good idea to call class constructor in a static constructor... but anyway, here is how
Solution 1
public class Tester
{
readonly static Tester cTest = new Tester();
}
Solution 2
public class Tester
{
readonly static Tester cTest;
static Tester()
{
cTest = new Tester();
}
}