if (runInDemoMode)
{
lock (this)
{
//Initalization of tables
dCreator.createInitialTables();
SetupPlugins();
AutoConfigure(database);
//Simulator
sim.processSimulatedData();
}
return;
}
Ideally i would like to have tables initialized (once) and then the simulator running again and again. Since I have the 3 inital methods for tables also under lock this they keep getting initalized again and again which is not how i want it.
Any Suggestions as to how i can ensure that if i am in run demo mode i can initalize the tables once and then run simulator again and again.
It is vital the tables are initalized before the simulator runs or else it will not work.